How to Upgrade Node.js to latest version?

Upgrading Node.js to latest version

You can check your node version via this Command
node -v

current version of node is 0.12.1 till 30Mar 2012

If you want to upgrade the node version then run following command

First run this Command
sudo npm install n -g

where n is version-management

Then run this command for specific version
sudo n 0.4.12

Or you want to upgrade node to current stable version then run this Command
sudo n stable

Please note this will not work for Windows

Comments