nvm install node globally mac code example
Example 1: how to install nvm in mac
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | bash
Example 2: install nvm mac
brew uninstall --ignore-dependencies nodebrew uninstall --force node