open the url https://github.com/creationix/nvm
1. curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
2. cd ~
touch .bash_profile
open .bash_profile
write in :
export NVM_DIR="${XDG_CONFIG_HOME/:-$HOME/.}nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
3. last:source ~/.bash_profile
SUCESS