npm配置国内镜像
npm使用国内镜像的方法
一.通过命令配置
- 命令
npm config set registry https://registry.npm.taobao.org
- 验证命令
npm config get registry
如果返回https://registry.npm.taobao.org,说明镜像配置成功。
npm config set registry https://registry.npm.taobao.org
npm config get registry
如果返回https://registry.npm.taobao.org,说明镜像配置成功。