美文网首页
npm , yarn 切换 设置 镜像 源地址

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

作者: 不玩了啊 | 来源:发表于2019-11-23 14:04 被阅读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

相关文章

网友评论

      本文标题:npm , yarn 切换 设置 镜像 源地址

      本文链接:https://www.haomeiwen.com/subject/snrhwctx.html