Last Updated: February 25, 2016
·
772
· areski

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.