//安装nrm,一定要全局安装
npm install -g nrm
//nrm查看所有镜像源命令,带*即为当前使用的源
nrm ls
npm ---------- https://registry.npmjs.org/
yarn --------- https://registry.yarnpkg.com/
tencent ------ https://mirrors.cloud.tencent.com/npm/
cnpm --------- https://r.cnpmjs.org/
* taobao ------- https://registry.npmmirror.com/
npmMirror ---- https://skimdb.npmjs.com/registry/
//如果使用nrm ls发现全面都没有带*,则可以参考最后面的教程
//切换镜像源命令
nrm use xxx
//当前使用的源
nrm current
taobao
npm 镜像源管理
最新推荐文章于 2024-09-14 14:04:37 发布