npm , yarn 切换 设置 镜像 源地址

2019-11-23  本文已影响0人  不玩了啊

npm

1、查看一下当前源

npm config get registry

2、切换为淘宝源

npm config set registry https://registry.npm.taobao.org/

3、还原仓库地址

npm config set registry https://registry.npmjs.org/

yarn

1、查看一下当前源

yarn config get registry

2、切换为淘宝源

yarn config set registry https://registry.npm.taobao.org

3、还原仓库地址

yarn config set registry https://registry.yarnpkg.com

————————————————

版权声明:本文为CSDN博主「懂懂kkw」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。

原文链接:https://blog.csdn.net/jiandan1127/article/details/93417431

上一篇 下一篇

猜你喜欢

热点阅读