Yarn install 报错 Resolving packages... [2/4] Fetching packages... info There appears to be trouble with your network connection. Retrying

时间:2019-12-17 15:01:34   收藏:0   阅读:925

1.设置淘宝代理

yarn config set registry ‘https://registry.npm.taobao.org‘

2.如果网址本地可以打开,说明你本地有代理设置

所以需要按本地的代理 设置yarn访问代理(本地代理查看的话,点检浏览器 inter选项--> 连接 --> 局域网设置 )

yarn config set proxy http://1.2.1.251

yarn config set https-proxy http://1.2.1.251

 

原文:https://www.cnblogs.com/Wilson6/p/12054543.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!