Check your current version
$ node -v
Install n with npm
$ sudo npm install -g n
Update your version with one of the following options
# install/update the stable node release
$ sudo n stable
#install/update the latest node release
$ sudo n latest
#install/update the latest LTS node release
$ sudo n lts
Check your version again
$ node -v