Bug : nodejs windows
See original GitHub issueTrying to install nodejs using the front-end-maven plugin only to get this error :
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.16:install-node-and-npm (install node and npm) on project test: Could not download Node.js from: http://nodejs.org /dist/v7.9.0/x64/node.exe: Got error code 407 from the server. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
And when I checked that after the version v4 of node the node.exe is in the path win-x64 and not x64
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
You are behind a proxy, and your proxy needs credentials. => Not a bug
Workaround: Before running maven goal to build, manually download node and keep in path ~/.m2/repository/com/github/eirslett/node/$version/.
Example: I had issue while downloading yarn and running below manually solved my problem as plugin will not try downloding at all:
curl -k -o ~/.m2/repository/com/github/eirslett/yarn/1.19.0/yarn-1.19.0.tar.gz --create-dirs --proxy http://proxy.host:port --proxy-user $USER:$PASS -L https://github.com/yarnpkg/yarn/releases/download/v1.19.0/yarn-v1.19.0.tar.gz