Upgrade node version on mac

3 commands to upgrade node version to the latest version.

1. Clear npm cache

sudo npm cache clean -f

2. Install n (https://github.com/tj/n)

sudo npm install -g n

3. Upgrade node to the latest stable version.

sudo n stable

Search within Codexpedia

Custom Search

Search the entire web

Custom Search