NVM阿里源
修改NVM下载nodejs的地址,设置环境变量。
命令行是bash
echo -e "\nexport NVM_NODEJS_ORG_MIRROR=http://npm.taobao.org/mirrors/node" >> ~/.bashrc
source ~/.bashrc
命令行是zsh
echo -e "\nexport NVM_NODEJS_ORG_MIRROR=http://npm.taobao.org/mirrors/node" >> ~/.zshrc
source ~/.zshrc