yarn 错误:There appears to be trouble with your network connection. Retrying…

问题

image.png
yarn超时导致链接无法建立

解决方法

更换源

操作

查看yarn/npm源

#查看代理
yarn config list
npm config list

npm设置代理

npm config set proxy http://127.0.0.1:8080
npm config set https-proxy http://127.0.0.1:8080

npm删除代理

npm config delete proxy
npm config delete https-proxy

yarn设置代理

yarn config set proxy http://127.0.0.1:8080
yarn config set https-proxy http://127.0.0.1:8080

yarn删除代理

yarn config delete proxy
yarn config delete https-proxy

npm/yarn转换淘宝源和官方源

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/
© 版权声明
THE END
喜欢就支持一下吧
点赞7 分享
相关推荐
  • 暂无相关文章
  • 评论 抢沙发
    头像
    欢迎您留下宝贵的见解!
    提交
    头像

    昵称

    取消
    昵称表情代码图片

      暂无评论内容