#安装nvm
https://github.com/nvm-sh/nvm
#使用国内源
npm config set registry http://registry.npmmirror.com
npm config set registry https://npm.aliyun.com/
npm config set registry https://mirrors.cloud.tencent.com/npm/
npm config set registry https://mirrors.163.com/npm/
npm config set registry https://registry.npmjs.org/
npm config get registry