updating node version on mac code example
Example 1: upgrading node on mac
1 brew update
2 brew upgrade node
Example 2: update nodejs mac
sudo npm cache clean -f
sudo npm install -g n
sudo n stable/lts
1 brew update
2 brew upgrade node
sudo npm cache clean -f
sudo npm install -g n
sudo n stable/lts