N: Question: update npm version

Created on 17 Sep 2016  路  4Comments  路  Source: tj/n

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.

Most helpful comment

@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.

All 4 comments

I suppose you can refer to this closed issue: https://github.com/tj/n/issues/218

As recommended I did npm install -g npm.

@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.

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

@Mesieu Unfortunately I didn't.

Was this page helpful?
0 / 5 - 0 ratings