当前位置:   article > 正文

[Flutter] Got socket error trying to find package coverage at http://pub.dartlang.org

mac上 got socket error trying to find package leak_tracker_flutter_testing a
遇到的问题:

执行:flutter doctor报错Got socket error trying to mac find package html at https://pub.flutter-io.cn.

全网修复方案:依然无效!!!
  1. export PUB_HOSTED_URL=https://pub.flutter-io.cn
  2. export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
解决办法:

使用以下镜像站,替换上面的开源社区镜像站;
测试腾讯云解决上述问题

腾讯云开源镜像站

  1. $ export PUB_HOSTED_URL=https://mirrors.cloud.tencent.com/dart-pub
  2. $ export FLUTTER_STORAGE_BASE_URL=https://mirrors.cloud.tencent.com/flutter

上海交大 Linux 用户组

  1. $ export PUB_HOSTED_URL=https://mirrors.sjtug.sjtu.edu.cn/dart-pub
  2. $ export FLUTTER_STORAGE_BASE_URL=https://mirrors.sjtug.sjtu.edu.cn

清华大学 TUNA 协会

  1. $ export PUB_HOSTED_URL=https://mirrors.tuna.tsinghua.edu.cn/dart-pub
  2. $ export FLUTTER_STORAGE_BASE_URL=https://mirrors.tuna.tsinghua.edu.cn/flutter
OpenTUNA
  1. $ export PUB_HOSTED_URL=https://opentuna.cn/dart-pub
  2. $ export FLUTTER_STORAGE_BASE_URL=https://opentuna.cn/flutter

CNNIC

  1. $ export PUB_HOSTED_URL=http://mirrors.cnnic.cn/dart-pub
  2. $ export FLUTTER_STORAGE_BASE_URL=http://mirrors.cnnic.cn/flutter
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Monodyee/article/detail/332461
推荐阅读
相关标签
  

闽ICP备14008679号