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:
Written by Hans Jakob Emmel
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Nodejs
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#