// 用来查看现在的镜像地址
npm get registry(默认是 https://registry.npmjs.org/)
// 将镜像地址更换成淘宝的
npm config set registry http://registry.npm.taobao.org/
yarn config set registry http://registry.npm.taobao.org/
// 如果想换成默认的
npm config set registry https://registry.npmjs.org/
将npm镜像替换为淘宝镜像
最新推荐文章于 2024-04-24 18:33:35 发布