number5
number5

Reputation: 16443

Should I reinstall npm each time after I upgraded Nodejs?

It seems each time I upgraded nodejs to a new version (>0.5.6?), npm is somewhat broken (you can still use the modules already installed but you cannot update or install new modules)

This problem will go away if I do

curl http://npmjs.org/install.sh | sh

So my question is: Should I reinstall npm each time I upgraded nodejs?

PS: I'm a Linux user and using nave to upgrade my nodejs.

Upvotes: 2

Views: 1319

Answers (1)

Ryan Olds
Ryan Olds

Reputation: 4847

Prior to 0.6.3, each time you install a new version of Node you will need to install npm for that installed instance, even if you installed over the top of a previous version (probably not a good idea).

Starting with 0.6.3, npm is bundled with Node.

Upvotes: 5

Related Questions