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
Cannot use npm newer than 1.4.12 #65
Comments
I took a look on how to solve this issue and I thing one solution would use the npm version from the nodejs tar file if you omit the |
That's an option for Linux and OSX, but the Windows binary is still not bundled with npm. I'm aware that npm is already bundled with the other two, but to keep the plugin simple I opted to download npm separately on all platforms. That also allows you to use a different version of npm than what the version of Node.js "recommends" (though that's probably an edge case) |
I still think you can make the optional. |
Detecting that this is a Unix machine and extracting the version of the embedded npm would be the best. |
Looks like 1.4.12 is the latest npm version released at http://nodejs.org/dist. |
No. I don't need the newest version. |
Hey guys, I found out that I required NPM 1.4.14 in order to use new project-specific .npmrc configuration file. This issue is a blocker in such a case. |
@eirslett would you mind to reopen this issue as it seems nothing have changed with the situation on http://nodejs.org/dist/npm/ ? |
Ah, my bad, this support was added in npm/npm@1707fce in Still, I consider this issue a blocker for progress as newer NPM versions are released. |
Is this just the Node.js team being lazy for not uploading releases to nodejs.org/dist, or have they officially changed the layout there? |
A question posted to Nodejs forums: https://groups.google.com/forum/#!topic/nodejs/sde0nVCtWLo |
If you look at the install script, apparently the individual npm tarball is now being hosted just on the npmjs.org registry server. Here's what the url structure looks like: https://registry.npmjs.org/npm/-/npm-1.4.23.tgz |
Awesome, thanks for the information @bkonkle Good news is that The comparison of the structure of tarballs from both sources shows that there are same but the top-folder (in on case it is
I assume we can switch to the new I just suggest we introduce |
Aah, I see. The solution would then, as @lfryc suggests, to rename downloadRoot to nodeDownloadRoot and make a new setting, npmDownloadRoot. PR would be great! |
I'm on it |
Can some please post the solution steps for this issue? I too face the same issue i.e. having older npm version in POM.xml (v0.10.18;1.3.8) if i try to update the version of node and npm in POM.xml and run "maven install" then i could see issues in the log stating that it cannot download the latest npm version and the server throws 404..... the installation is happening behind a proxy, not sure if that's an issue because the node version 0.12.0 is getting installed properly but npm is not getting installed or downloaded. Kind of stuck because of this... |
What version of the frontend-maven-plugin are you using? I'm installing Node 2.9.0 with this and having no trouble now. |
@bkonkle i'm using 0.0.15 version of the frontend-maven-plugin and also i hope you are using NPM 2.9.0... Do you think upgrading the version to 0.0.23 or to the latest version of this plugin would resolve the issue.. i.e. after updating the plugin to latest version and then as a next step updating the npm version... |
Ha - yes, npm 2.9.0. Updating to 0.0.23 would almost certainly resolve your issue. 0.0.15 is pretty old, and definitely prior to the fix discussed here. |
@bkonkle i have updated the plugin version to 0.0.23 and node version to 0.12.2 and npm version to 2.9.0. It is working as expected when i run mvn install in local. But if the task runs in jenkins DEV box there are errors related to npm-cli.js... i tried even wiping out the workspace completely but no luck still the npm-cli error is thrown in the logs, [ERROR] npm ERR! argv "....Application/client/node/node" "....Application/client/node/npm/bin/npm-cli.js" "install" "--color=false" "--proxy=http://http.proxy.xxxxx.com:8000" |
It's possible that you're getting hit with the same spaces-in-path issue as I am. Jenkins uses workspace paths that can easily have spaces in them, and the default argument parsing doesn't take that into account well. Take a look at my pull request - you may be able to fork the project like I did and use a custom version of it to fix the spaces until Eirik has a chance to look at it. |
It seems there is some problem with installing npm 1.4.13 and newer.
I use pretty much the same pom.xml as the linked sample project in the README and
using
<npmVersion>1.4.12</npmVersion>
works but<npmVersion>1.4.13</npmVersion>
. According tonpm info npm
and http://registry.npmjs.org/npm/ the latest version is 1.4.16.Is it something related to the fact that npm is distributed with node.js since a while ?
If so then please either update the README and/or do not require
npmVersion
for newer node.js.Thanks for this nice plugin!
The text was updated successfully, but these errors were encountered: