npm和yarn转换淘宝源和官方源
12345 |
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.npmjs.org/ |
npm 设置代理
12 |
npm config set proxy http://127.0.0.1:8080npm config set https-proxy http://127.0.0.1:8080 |
npm 删除代理
12 |
npm config delete proxynpm config delete https-proxy |
yarn 设置代理
12 |
yarn config set proxy http://127.0.0.1:8080yarn config set https-proxy http://127.0.0.1:8080 |
yarn 删除代理
12 |
yarn config delete proxyyarn config delete https-proxy |
原文地址:https://www.cnblogs.com/icefish527/p/12064101.html
时间: 2024-10-30 01:05:14