美文网首页
yarn 和npm 换成淘宝镜像

yarn 和npm 换成淘宝镜像

作者: 凌统丶 | 来源:发表于2019-11-01 11:58 被阅读0次

NPM设置淘宝镜像
1.查询当前配置的镜像

npm get registry

https://registry.npmjs.org/

设置成淘宝镜像

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

2.换成原来的

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

Yarn 设置淘宝镜像
1.查询当前配置的镜像

yarn config get registry

https://registry.yarnpkg.com

设置成淘宝镜像

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

相关文章

网友评论

      本文标题:yarn 和npm 换成淘宝镜像

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