I have a new error in the configuration phase of m...
# javascript
r
I have a new error in the configuration phase of my kmp project
Copy code
Could not determine the dependencies of task ':kotlinNodeJsSetup'.
> Could not resolve all files for configuration ':detachedConfiguration1'.
   > Could not download node-14.17.0-darwin-x64.tar.gz (org.nodejs:node:14.17.0): No cached version available for offline mode

Possible solution:
 - Disable offline mode and rerun the build
found this bug which looks similar. I am on kotlin 1.5.31 - is the only sloution to upgrade to kotlin 1.6? maybe it not a problem but just might be some work. https://youtrack.jetbrains.com/issue/KT-49109
t
Copy code
Possible solution:
 - Disable offline mode and rerun the build
r
clicked it ...
doesnt help
googleing
now its
Copy code
Could not GET '<https://kotlin.bintray.com/kotlinx/org/nodejs/node/14.17.0/node-14.17.0.pom>'. Received status code 502 from server: Bad Gateway
i might be an idiot
h
Nope, bintray is offline
Looks like you must change nodeJS url to an existing (or upgrade to 1.6)
r
ahh yes i havent worked on it in a couple of months - i guess updating to 1.6 is the easiest way... how would i change the nodejs url?
h
Copy code
rootProject.plugins.withType<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin> {
rootProject.the<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension>().nodeDownloadBaseUrl = 
}
🙌 1
r
so i have updated the project to use 1.6.10 but it still seems to be loking for jcenter everywhere i have taken
jcenter()
it out of the root build,gradle. is there a guide to updating a project somewhere - i guess this must happen for everyone at the moment? lateest error is :
Copy code
Could not GET '<https://kotlin.bintray.com/kotlinx/com/yarnpkg/yarn/1.22.10/yarn-1.22.10.pom>'. Received status code 502 from server: Bad Gateway
h
You must also update the yarn url. https://youtrack.jetbrains.com/issue/KT-38146#focus=Comments-27-4075181.0-0 Or again: switch to Kotlin 1.6 😄
r
yes well i have updated to
1.6.10
as above but i am still getting this error.
actually this is reaally weird there is the toggle offline mode button in the gradle
one way i get
Could not GET '<https://kotlin.bintray.com/kotlinx/org/nodejs/node/14.17.0/node-14.17.0.pom>'. Received status code 502 from server: Bad Gateway
Disable Gradle 'offline mode' and sync project
and the other way i get
Could not GET '<https://kotlin.bintray.com/kotlinx/com/yarnpkg/yarn/1.22.10/yarn-1.22.10.pom>'. Received status code 502 from server: Bad Gateway
Disable Gradle 'offline mode' and sync project
so i am already upgraded to 1.6.10 - should it just work? or is there any guide to updating to bypass jcenter? i guess all these packages have now moved to
mavenCentral()
?
t
i guess all these packages have now moved to 
mavenCentral()
?
Yes
r
i also updated gradle to 7.3.2 then it worked 🤷‍♂️