nvm Posted on 2018-07-05 Views: Disqus: 根据nvm进行安装,安装之后会在你的profile(~/.bash_profile, ~/.zshrc, ~/.profile, or ~/.bashrc)文件中添加以下两行: 12export NVM_DIR="$HOME/.nvm"[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm 然后在后面添加一行: 12NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/mirrors/nodeNVM_IOJS_ORG_MIRROR=https://npm.taobao.org/mirrors/iojs