Open Hypnosphi opened 5 years ago
That's correct, there's no 32bit version of node v10.15.3, if you want to run it on a 32bit system you'll have to pick an earlier version of node.
@deepy actually, the question is why does it try to download an x86 version on 64-bit linux machine (this is Ubuntu 16.04)
@paksv probably because it's a 32bit JVM being used. Can you check what ´os.arch´ is being reported by the JVM used by gradle? We've changed this in the fork to better support ARM but it's pretty simple in both cases. https://github.com/node-gradle/gradle-node-plugin/commit/3d33948b5fc38d30208d495290ec87722a31bdff
@deepy, thanks, it's indeed because of 32-bit jvm. I have worked around the issue by modifying the getOsArch() and using a locally built package. Would you like me to send a PR for the fix?
To be honest, I think this is Working As Intended. Your JVM is reporting 32-bit and 32-bit node is being requested.
If you're on a 64-bit system, why not use a 64-bit JVM?
To be honest, I think this is Working As Intended. Your JVM is reporting 32-bit and 32-bit node is being requested.
If you're on a 64-bit system, why not use a 64-bit JVM?
Hi, I am having the same issue. Running in idea IntelliJ on my local 64 bits widows machine with 64bit JAVA. But it still looks for x86. What can I do to ask it to look for x64 folder? Thank you!
Does it work when you run Gradle from the command-line with a 64-bit JVM?
If that doesn't work, check what os.arch
is being reported and open an issue at the fork and I can have a look at it.
Does it work when you run Gradle from the command-line with a 64-bit JVM? If that doesn't work, check what
os.arch
is being reported and open an issue at the fork and I can have a look at it.
Hi @deepy , thank you for the quick reply.
I just started this job and am very new with gradle.
This is how I check os.arch in gradle and it returns amd64
System.getProperty("os.arch");
How can I ask gradle to run 64-bit JVM through command line? Thank you so much!
Setting JAVA_HOME
is probably the way to go there, but if os.arch
returns amd64
you're supposed to get an x64 distribution of node, that's what's being used to determine which version to download.
@deepy,
Thank you for the reply. Any recommendation I can get the code running on my Windows machine? Thank you.
Yachin
Use a 64bit JVM
I try to run my gradle task on a linux agent on CI. Here's the relevant part of
build.gradle
:It fails on
:nodeSetup
task:There's no linux-x86 distribution in https://nodejs.org/dist/v10.15.3/