临时改变install源
shell
npm install --registry=https://registry.npm.taobao.org
查看当前npm 源
shell
npm config get registry
改变npm 源
以改成淘宝镜像为例:
shell
npm config set registry https://registry.npm.taobao.org/
附上官方镜像源