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

Question: update npm version #374

Closed
Olgagr opened this issue Sep 17, 2016 · 6 comments
Closed

Question: update npm version #374

Olgagr opened this issue Sep 17, 2016 · 6 comments

Comments

@Olgagr
Copy link

Olgagr commented Sep 17, 2016

Is there any way to update npm version for particular node version ? Let's say I switch to node version 6.6.0. The npm version is 3.10.3 and I need to have version 3.10.6.

@jewelsjacobs
Copy link

I suppose you can refer to this closed issue: #218

As recommended I did npm install -g npm.

@Olgagr
Copy link
Author

Olgagr commented Sep 22, 2016

@jewelsjacobs Thanks for answer. This is what I did, but still when I switch the node version with n, I get bundled npm version. For example, I switched to node 6.6.0, I did npm install -g npm, npm -v gave me as expected 3.10.6 but after switching to node 6.6.0 after a while, again I have bundled npm version -> 3.10.3.

@FelDev
Copy link

FelDev commented Jun 13, 2018

@Olgagr did you figure it out?
I have the same issue.

@Olgagr
Copy link
Author

Olgagr commented Jul 23, 2018

@mesieu Unfortunately I didn't.

@soknifedev
Copy link

For those looking for a solution nowadays, what I did is to specify the npm version manually "npm install -g [email protected]", since npm install -g npm@latest didn't work after switching the node version with n.

@shadowspawn
Copy link
Collaborator

See #484 for details about npm when switching node.js versions..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants