Tuesday, April 12, 2016

How to Upgrade NodeJS to Latest Version using NPM

If we want to upgrade NodeJS to latest version using NPM.

we have to run following commands in Terminal.

sudo npm cache clean -f

sudo npm install -g n

sudo n stable