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
// 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