curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
nvm --version
nvm install --lts
nvm use --lts
brew updatebrew install nvm
brew update
brew install nvm
mkdir ~/.nvm
vim ~/.bash_profile
// and, add the below lines to ~/.bash_profile ( or ~/.zshrc for macOS Catalina or newer versions)
export NVM_DIR=~/.nvm
source $(brew --prefix nvm)/nvm.sh
//now run this
source ~/.bash_profile
nvm -v
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | bash
$ brew update
$ brew install nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm
[ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && . "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
export NVM_DIR=~/.nvmsource $(brew --prefix nvm)/nvm.sh
nvm ls-remote
nvm install 11
brew uninstall --ignore-dependencies nodebrew uninstall --force node
mkdir ~/.nvm
nvm use 11
jamesauble@James-MacBook-Air:$ echo $NVM_DIR/Users/jamesauble/.nvm