-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
🐞 [BUG] npm@7 is broken on node@8 or older #2599
Comments
If you are still running node 8 you are going to want to use npm v6, You can use the $ npm install npm@latest-6 If you have installed npm 7 on node 8 you can run this command to get back to a working npm 6 $ curl -qs https://www.npmjs.com/install.sh|npm_install=6.14.11 sh |
Running into the exact same issue and installing latest version of 6 isn't working for me with node 8. When I run |
If you're using nvm, you can also |
We have the same issue in our Jenkins pipilines. |
I'm also having this error when I upgraded from 5.6.0 to 7.5.2. Reinstalling node from nodejs.org (with npm 6.14.10) fixed this. |
I am really stuck here and this is on my production server. I can't get nvm installed, get the same error installing nvm |
We're seeing this issue in our pipeline. As far as I can tell downgrading to npm 6 does fix it, but that is quite a pain. |
Yeah, thanks. Had to manually do the install of lower version of npm. Then upgrade node. Then was able to update npm. |
See npm/cli#2599 Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>
If you have installed npm 7 on node 8 you can run this command to get back to a working npm 6 $ curl -s https://www.npmjs.com/install.sh|npm_install=6.14.11 sh |
Thank you, This help me fix this issue |
stat
of 'undefined' or 'null'.
@wraithgar heads up that that's not working for me; curl doesn't output anything to the pipe unless i add |
@ljharb that sounds like a curl version issue maybe? If I remember correctly older versions of curl didn't automatically handle being piped correctly. The readme example has What version of curl were you using? I am on |
@wraithgar i'm using whatever |
See npm/cli#2599 Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>
Nope, no curlrc, and same version but I'm not on Big Sur, still on Catalina. |
I just tried on Big Sur in both fwiw I tested on an m1 mbp and in both rosetta and with a native node, no issues anywhere for me |
oooops, lol, i had a curlrc with |
we can patch the script to pass a |
@tuchidoghostmaster the |
@ljharb yes, i'm updated, using node 8 and npm 6+ working for me now. see comment #2599 (comment) |
I'm getting the exact same error. I was running Node 12.18 and tried upgrading to 14.15.4, which came with npm 6.14.1, which didn't fix it. Then tried to upgrade npm, but got the error again. |
I don't know if this is allowed or not to talk about third party packages but I discovered npm-check-updates today, it solves the npm update problem for me... If that can help anyone! |
Current Behavior:
Running
npm install -g npm@7.5.1
Running
npm install -g npm
on version 7.5.2produces the following output.
Expected Behavior:
Packages installed successfully
Steps To Reproduce:
ex. steps to reproduce the behavior:
Environment:
The text was updated successfully, but these errors were encountered: