change node version on mac code example
Example 1: update nodejs mac
sudo npm cache clean -f
sudo npm install -g n
sudo n stable/lts
Example 2: use a specific version of node
nvm use {Node version}
Example 3: how to change node version
nvm use --delete-prefix $NODE_VERSION
example:
nvm use --delete-prefix v8.9.4