0%

nvm

根据nvm进行安装,安装之后会在你的profile(~/.bash_profile, ~/.zshrc, ~/.profile, or ~/.bashrc)文件中添加以下两行:

1
2
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm

然后在后面添加一行:

1
2
NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/mirrors/node
NVM_IOJS_ORG_MIRROR=https://npm.taobao.org/mirrors/iojs