V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
zealinux
V2EX  ›  Flutter

Mac 安装 Flutter 一直不成功,怎么解决?

  •  
  •   zealinux · Mar 8, 2021 · 2080 views
    This topic created in 1886 days ago, the information mentioned may be changed or developed.
    flutter doctor,提示下面错误:

    ```
    Got socket error trying to find package args 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
    ```

    如果使用官方仓库(翻腔 or 不翻腔)都是不行。

    是不是那里有问题?

    ```
    macOS Big Sur 11.2.2
    Flutter 2.0
    ```
    7 replies    2021-03-08 16:38:56 +08:00
    happyeveryday
        1
    happyeveryday  
       Mar 8, 2021
    终端挂代理,全流程安装顺畅,速度都是大几 MB/s
    lagoon
        2
    lagoon  
       Mar 8, 2021
    觉得还是连不上的问题啊。

    啰嗦一句,确定终端是用的代理?

    终端代理怎么配置的?
    happyeveryday
        3
    happyeveryday  
       Mar 8, 2021
    google or baidu => 终端代理怎么配置
    @lagoon
    lagoon
        4
    lagoon  
       Mar 8, 2021
    @happyeveryday 多些宽容,少些戾气嘛。大家都是从什么都不会开始的。

    想起我还犯过,终端配置里的英文敲错了,导致出不去的窘境。

    用命令测吧,出去了。实际用吧,没出去。因为 http 那里没敲错,https 敲错了。害我研究了半天。
    loshine1992
        5
    loshine1992  
       Mar 8, 2021
    export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890

    换成自己的地址和端口
    happyeveryday
        6
    happyeveryday  
       Mar 8, 2021
    @lagoon 头疼..

    1.给出解决方案的关键途径(多些宽容,少些戾气)
    2.直接给出终端代理命令答案(才是正解)
    niubee1
        7
    niubee1  
       Mar 8, 2021
    基本都是代理设置和墙的问题,建议在办公环境用傍路由全局翻墙,简单不折腾。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5837 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 57ms · UTC 02:43 · PVG 10:43 · LAX 19:43 · JFK 22:43
    ♥ Do have faith in what you're doing.