参考地址:
(1)https://blog.csdn.net/weixin_55666891/article/details/145574859
(2)https://blog.csdn.net/liuguoqinga/article/details/127601771
一:查看yarn配置
查看当前使用的源 yarn config list
二:改变源 :
yarn config set registry https://registry.npmmirror.com(推荐)
或
yarn config set registry https://registry.npm.taobao.org
三:移除原代理
yarn configdeleteproxy
npmconfig rm proxy
npmconfig rm https-proxy