Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Should I reinstall npm each time after I upgraded Nodejs?

Should I reinstall npm each time after I upgraded Nodejs?

Problem

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.

Problem courtesy of: number5

Solution

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.

Solution courtesy of: Ryan Olds

Discussion

View additional discussion.



This post first appeared on Node.js Recipes, please read the originial post: here

Share the post

Should I reinstall npm each time after I upgraded Nodejs?

×

Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription

×