美文网首页
npm、yarn切换源、加代理

npm、yarn切换源、加代理

作者: alanwhy | 来源:发表于2020-10-17 10:19 被阅读0次

npm和yarn转换淘宝源和官方源

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

yarn config set registry http://registry.npm.taobao.org/
yarn config set registry https://registry.yarnpkg.com

npm 设置代理

npm config set proxy http://127.0.0.1:8080
npm config set https-proxy http://127.0.0.1:8080

npm 删除代理

npm config delete proxy
npm config delete https-proxy

yarn 设置代理

yarn config set proxy http://127.0.0.1:8080
yarn config set https-proxy http://127.0.0.1:8080

yarn 删除代理

yarn config delete proxy
yarn config delete https-proxy

相关文章

网友评论

      本文标题:npm、yarn切换源、加代理

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