~~yarn config set registry <https://registry.npm.taobao.org~~>
新的:
**yarn config set registry <https://registry.npmmirror.com/**>
// 查询源
yarn config get registry
// 更换国内源
yarn config set registry <https://registry.npmmirror.com>
// 恢复官方源
**yarn config set registry <https://registry.yarnpkg.com>**
// 删除注册表
yarn config delete registry
设置回官方:yarn config set registry <https://registry.npmjs.org> --global
yarn config set sass-binary-site <http://npm.taobao.org/mirrors/node-sass>
或者
npm config set sass-binary-site <http://npm.taobao.org/mirrors/node-sass>
// 查询源
npm config get registry
// 更换国内源
npm config set registry <https://registry.npmmirror.com>
// 恢复官方源
npm config set registry <https://registry.npmjs.org>
npm config set registry <https://registry.npm.taobao.org>
npm config set disturl <https://npm.taobao.org/dist>
可以删除代理:
npm config rm proxy
npm config rm https-proxy