Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find node version #124

Closed
junhoi-pk opened this issue Oct 28, 2020 · 5 comments
Closed

Could not find node version #124

junhoi-pk opened this issue Oct 28, 2020 · 5 comments

Comments

@junhoi-pk
Copy link

The following error occurs a few days ago.

> Task :xxx:nodeSetup FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':xxx:nodeSetup'.
> Could not resolve all files for configuration ':ranchat-admin:detachedConfiguration1'.
   > Could not find node-14.4.0-linux-x86.tar.gz (org.nodejs:node:14.4.0).
     Searched in the following locations:
         https://nodejs.org/dist/v14.4.0/node-v14.4.0-linux-x86.tar.gz

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Below is my gradle config

node {
    version = '14.4.0'
    npmVersion = '6.14.4'
    distBaseUrl = 'https://nodejs.org/dist'
    download = true
    workDir = file("${projectDir}/src/main/nodejs")
    npmWorkDir = file("${projectDir}/src/main/js")
    nodeModulesDir = file("${project.projectDir}/src/main/js")
}

I tried changing the node version, but the problem is the same.

@deepy
Copy link
Member

deepy commented Oct 28, 2020

You'll need to downgrade far, I think nodejs 8 was the last version with 32-bit support. see nodejs/build#885 for full information.

You can probably use the unofficial builds with distBaseUrl but there's no support for 32-bit so I recommend upgrading your systems,

@deepy deepy closed this as completed Oct 28, 2020
@junhoi-pk
Copy link
Author

@deepy
But I have never changed the version,
Just a day ago, it worked very well.

However, I upgraded the Java version from 11.0.3 to 11.0.9. Is this related?

Thx

@junhoi-pk
Copy link
Author

@deepy And my server is x86_64

@deepy
Copy link
Member

deepy commented Oct 28, 2020

@junhoi-pk this plugin will get the system architecture from the JVM, you might have accidentally installed a 32-bit JVM and as a result the plugin is seeing a 32-bit system.

You can verify this with java -version

...
OpenJDK 64-Bit Server VM AdoptOpenJDK

@junhoi-pk
Copy link
Author

Thank you very much.
Thanks for finding the solution

The jdk version was installed as 32bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants