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

Update npm version shipped with Node 12 #33581

Closed
burashka opened this issue May 27, 2020 · 3 comments
Closed

Update npm version shipped with Node 12 #33581

burashka opened this issue May 27, 2020 · 3 comments
Labels
npm Issues and PRs related to the npm client dependency or the npm registry.

Comments

@burashka
Copy link

Node 12 shipped with npm 6.14.4, but this npm version have bug. Users ask update npm version shipped with Node 12.

What is the expected behavior?

npm version 6.14.5 shipped with Node 12

What do you see instead?

npm version 6.14.4 shipped with Node 12

@targos
Copy link
Member

targos commented May 27, 2020

npm is regularly updated on Node.js 12. The next release will probably have it.
In the meantime, you can update manually with npm install -g npm.

@targos targos closed this as completed May 27, 2020
@targos targos added the npm Issues and PRs related to the npm client dependency or the npm registry. label May 27, 2020
@bohni
Copy link

bohni commented Jun 5, 2020

How to update npm (node-12.18.0) on windows?

$ npm install -g npm
npm ERR! code EEXIST
npm ERR! path C:\<pathToNode>\npm.cmd
npm ERR! Refusing to delete C:\<pathToNode>\npm.cmd: is outside C:\<pathToNode>\node_modules\npm and not a link
npm ERR! File exists: C:\<pathToNode>\npm.cmd
npm ERR! Remove the existing file and try again, or run npm

If I remove all 4 files that were complained about, I finally got "npm not found"...
Running

C:\<pathToNode>\node_modules\npm\bin\npm install -g npm

leeds to other errors

@DerekNonGeneric
Copy link
Contributor

If I remove all 4 files that were complained about, I finally got "npm not found"...

I don't think you were supposed to delete those. I would probably uninstall and reinstall at this point if I were you. For Windows, I have been using nvs to manage Node.js versions, which includes npm. Might want to give that a go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
npm Issues and PRs related to the npm client dependency or the npm registry.
Projects
None yet
Development

No branches or pull requests

4 participants