help icon indicating copy to clipboard operation
help copied to clipboard

x86_64 being added to artifact so node cant be found in repo.

Open nathanbrinqa opened this issue 2 years ago • 1 comments

Details

I am unable to build my app with node, I believe it has something to do with x86_64 being added to the artifact.

Node.js version

Not applicable.

Example code

  > Task :my-app:nodeSetup FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':my-app:nodeSetup'.
> Could not resolve all files for configuration ':my-app:detachedConfiguration22'.
   > Could not find node-16.4.0-darwin-x86_64.tar.gz (org.nodejs:node:16.4.0).
     Searched in the following locations:
         https://nodejs.org/dist/v16.4.0/node-v16.4.0-darwin-x86_64.tar.gz

The error i am getting.

Operating system

macOS monterey M1 chip

Scope

runtime.

Module and version

16.14.0

nathanbrinqa avatar Mar 24 '22 21:03 nathanbrinqa

This problem comes from Gradle plugin, it was resolving incorrectly the version because the uname command was returning inconsistent results. After specifying the latest Gradle plugin version 3.3.0, my problem was resolved.

buildscript {
    dependencies {
        classpath 'com.github.node-gradle:gradle-node-plugin:3.3.0'
    }
}

For more info check the pull https://github.com/node-gradle/gradle-node-plugin/pull/204

CrlsMrls avatar Jun 22 '22 11:06 CrlsMrls

It seems there has been no activity on this issue for a while, and it is being closed in 30 days. If you believe this issue should remain open, please leave a comment. If you need further assistance or have questions, you can also search for similar issues on Stack Overflow. Make sure to look at the README file for the most updated links.

github-actions[bot] avatar May 08 '24 01:05 github-actions[bot]