Wednesday, March 18, 2015

Upgrade node.js via npm

sudo npm cache clean -f
sudo npm install -g n
sudo n stable

This will install the latest stable version.

If you want to install a specific version.
sudo npm n 0.10.34

This will install 0.10.34 version.

Just to cross check, use below command. This will print the installed version.
node -v

No comments:

Post a Comment