I am trying to install NVM as per these instructions
I typed in this command in terminal:
$ curl https://raw.github.com/creationix/nvm/master/instal
In macOS, i had to source it using source ~/.nvm/nvm.sh command to fix this problem.
source ~/.nvm/nvm.sh
After that, add these lines
export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
onto ~/.bash_profile so that nvm will be sourced automatically upon login.
~/.bash_profile