美文网首页
[已解决] Got socket error trying to

[已解决] Got socket error trying to

作者: truemi | 来源:发表于2021-04-30 10:36 被阅读0次
遇到的问题:

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

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

使用以下镜像站,替换上面的开源社区镜像站;

腾讯云开源镜像站

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

上海交大 Linux 用户组

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

清华大学 TUNA 协会

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

OpenTUNA

$ export PUB_HOSTED_URL=https://opentuna.cn/dart-pub
$ export FLUTTER_STORAGE_BASE_URL=https://opentuna.cn/flutter

CNNIC

$ export PUB_HOSTED_URL=http://mirrors.cnnic.cn/dart-pub
$ export FLUTTER_STORAGE_BASE_URL=http://mirrors.cnnic.cn/flutter

相关文章

网友评论

      本文标题:[已解决] Got socket error trying to

      本文链接:https://www.haomeiwen.com/subject/mnhnrltx.html