how to upgrade the node version in mac using nvm code example
Example: update node mac to specific version
//On Linux/Mac:
//The module n makes version-management easy:
sudo npm install n -g
//For the latest stable version:
sudo n stable
//For the latest version:
sudo n latest