npm 选择镜像源安装 、以及镜像改变

临时改变install源

npm install --registry=https://registry.npm.taobao.org 

查看当前npm 源

npm config get registry

改变npm 源

以改成淘宝镜像为例:

npm config set registry https://registry.npm.taobao.org/

附上官方镜像源

https://registry.npmjs.org/

你可能感兴趣的:(npm,前端,node.js)