Before installing nvm, run this in terminal: touch ~/.bash_profile
After, run this in terminal:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
Important... - DO NOT forget to Restart your terminal OR use command source ~/.nvm/nvm.sh (this will refresh the available commands in your system path).
In the terminal, use command nvm --version and you should see the version
출처
https://stackoverflow.com/questions/16904658/node-version-manager-install-nvm-command-not-found