Upgrade Node.js to the last stable version
First check the version of node you are using with this command:
node -v
To update run the following as root:
npm cache clean -f
npm install -g n
n stable
The n package is a Node helper, and running "n stable" will upgrade node to the latest stable version.
Written by Areski Belaid
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#