node.js更换镜像源

// 1. 清空缓存
npm cache clean --force

// 2. 切换新源
npm config set registry https://registry.npmmirror.com

第一次如何使用淘宝镜像

// 1. 切换镜像源
npm config set registry https://registry.npmmirror.com

// 2. 检测是否切换成功
npm config get registry
posted @ 2024-07-18 13:47  码海无牙φ  阅读(1186)  评论(0)    收藏  举报