mac nvm install

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




原文地址:https://www.cnblogs.com/crith/p/9684237.html