install nvm on mac brew code example
Example 1: install nvm with brew
brew update
brew install nvm
mkdir ~/.nvm
export NVM_DIR=~/.nvm
source $(brew --prefix nvm)/nvm.sh
Example 2: install nvm mac
jamesauble@James-MacBook-Air:$ echo $NVM_DIR/Users/jamesauble/.nvm