Node.js — How to upgrade Node.js version
1 min readOct 28, 2016
Node.js v7 has arrived! Awesome :D. As big fans of Node.js land, I also upgrade to latest version for purpose development.
There is easy way to managing node version, once of the best choice is using Node version management: n
Check currently version
$ node -v
v6.3.0
Clear npm cache
$ sudo npm cache clean -f
Install package n
$ sudo npm install -g n
Upgrade next version
$ sudo n latest
Or
$ sudo n stable
Or
$ sudo n <version>
Check node installed version
$ node -v
v7.0.0
Happy coding!