curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
2. 切换镜像
// .bashrc 添加环境变量配置 export NVM_NODEJS_ORG_MIRROR=http://npm.taobao.org/mirrors/node
1. 安装:npm install -g nrm
2.切换淘宝源:nrm use taobao