本文介绍: npm 选择镜像源install、以及改变镜像

临时改变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/

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注