1、命令行临时使用指定镜像(淘宝)
npm --registry https://registry.npm.taobao.org install express
复制
2、命令行永久更改使用指定镜像(淘宝)
npm config set registry https://registry.npm.taobao.org
3.其他命令
查看npm源地址有没有换成功:
npm config get registry
4.重置为官方源:
npm config set registry https://registry.npmjs.org/
标签:npm,set,修改,registry,https,org,config From: https://www.cnblogs.com/Arborblog/p/16974286.html