how to update node version on mac using terminal and npm code example
Example: update nodejs mac
sudo npm cache clean -f
sudo npm install -g n
sudo n stable/lts
sudo npm cache clean -f
sudo npm install -g n
sudo n stable/lts