1、查看默认源
命令:npm config get registry 输出:https://registry.npmjs.org/
2、修改为国内淘宝源
- 这里可以在镜像毛看可选地址 https://jingxiangmao.com/
npm config set registry https://registry.npm.taobao.org
3、查看修改是否成功
命令:npm config get registry 输出:https://registry.npm.taobao.org/标签:npm,修改,registry,https,org,镜像,config From: https://www.cnblogs.com/yangxiaoguo/p/17246964.html