Upgrading node.js from within NPM
There's an easy and clean way to upgrade your node.js version without having to download the newest package - via npm itself!
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
Then check is everything went as expected:
node -v
Credits to David Walsh: http://davidwalsh.name/upgrade-nodejs
Written by Ricardo Magalhães
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Node
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#