Npm的一些镜像地址
官方源
复制代码
npm cache clean --force
https://registry.npmjs.org
npm config get registry
淘宝源
复制代码
npm cache clean --force
npm config set registry https://registry.npmmirror.com
npm config get registry
cnpm源:
复制代码
npm cache clean --force
npm config set registry http://r.cnpmjs.org
npm config get registry
阿里云npm源
复制代码
npm cache clean --force
npm config set registry https://registry.npm.alibaba-inc.com
npm config get registry
复制代码
npm cache clean --force
npm config set registry https://mirrors.huaweicloud.com/repository/npm
npm config get registry