vu5vlq
Last Updated: February 25, 2016
·
527
· hjemmel

Upgrade Node.js via NPM

The following commands show how to upgrade Node.js simply using npm:

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

You can also a specific version:

sudo n 0.8.21

Just put the version number instead of stable

To check the version number simply do:

node -v

References:

David Walsh Blog

Simon Holmes Blog