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




posted @ 2018-09-21 00:55  follaw  阅读(136)  评论(0编辑  收藏  举报

emai:crith_net#126.com