配置yarn新淘宝镜像和代理
1.安装yarn
npm install yarn -g
2.配置yarn淘宝镜像
yarn config set registry https://registry.npmmirror.com
3.查询yarn镜像地址
yarn config get registry
4.恢复官方镜像
yarn config set registry https://registry.yarnpkg.com
5.删除代理
yarn config delete proxy
yarn config delete https-proxy
6.设置代理
yarn config set proxy http://127.0.0.1:8080
yarn config set https-proxy http://127.0.0.1:8080
只要思想不滑坡,办法总比困难多!