https://kotlinlang.org logo
#javascript
Title
# javascript
s

spierce7

03/17/2023, 5:13 PM
Is anyone else seeing this issue? of not being able to download nodejs?
Copy code
#13 100.6 FAILURE: Build failed with an exception.
#13 100.6 
#13 100.6 * What went wrong:
#13 100.6 Could not determine the dependencies of task ':kotlinNodeJsSetup'.
#13 100.6 > Could not resolve all files for configuration ':detachedConfiguration1'.
#13 100.6    > Could not resolve org.nodejs:node:16.13.0.
#13 100.6      Required by:
#13 100.6          project :
#13 100.6       > Could not resolve org.nodejs:node:16.13.0.
#13 100.6          > Could not get resource '<https://nodejs.org/dist/v16.13.0/node-v16.13.0-linux-x64.tar.gz>'.
#13 100.6             > Could not HEAD '<https://nodejs.org/dist/v16.13.0/node-v16.13.0-linux-x64.tar.gz>'. Received status code 403 from server: Forbidden
#13 100.6 
#13 100.6 * Try:
#13 100.6 > Run with --info or --debug option to get more log output.
#13 100.6 > Run with --scan to get full insights.
#13 100.6 
#13 100.6 * Exception is:
#13 100.6 org.gradle.api.internal.tasks.TaskDependencyResolveException: Could not determine the dependencies of task ':kotlinNodeJsSetup'.
#13 100.6 	at
t

turansky

03/17/2023, 7:33 PM
I also have such problems on CI It looks like node.js site limitations
e

ephemient

03/17/2023, 7:41 PM
https://youtrack.jetbrains.com/issue/KT-38146 you can adjust the download location to something else that works for you
or you can pre-install it and tell KGP to use the system installation https://youtrack.jetbrains.com/issue/KT-32071
s

spierce7

03/17/2023, 8:15 PM
thanks for the links! Can I just check in the nodejs tar, and have it use that when it needs it instead of downloading?
it's nice that it auto installs, but actually installing it is a bit of a challenge in docker images
e

ephemient

03/17/2023, 8:16 PM
I wouldn't check large binaries into git (assuming that's what you're using)
if you use or create docker image with an appropriate version nodejs included, that should work better (and faster, as there's no need for installation during the build)
a

Adam S

03/17/2023, 8:23 PM
oops I forgot to hit send on that an hour ago, they say it’s resolved now
143 Views