【问题标题】:Flutter doctor command but nothing happen颤动医生命令,但没有任何反应
【发布时间】:2018-08-10 09:49:03
【问题描述】:

我使用的是 MacBook Pro 并安装了 Flutter,但是当我输入 flutter doctor 时,它没有响应(大约 10 分钟过去了)。

flutter doctor

这个issue 跟我一样,但是我没有安装 Mamp 软件。

【问题讨论】:

    标签: flutter nothing


    【解决方案1】:

    听起来很傻,你是在线连接的吗?当我与 Internet 断开连接时,就会发生这种情况。

    另外,当你这样做时会发生什么?

    > flutter upgrade
    

    然后它仍然锁定,还是在最终继续并运行颤振医生之前实际上检查版本?

    【讨论】:

    • 我做我能做的,但是没用!“重装系统”就可以了!
    • 这对我不起作用。同样的问题。一旦我运行任何 Flutter 命令,Dart SDK 就会爆炸
    • @BobSmall,您使用的是什么版本 (flutter --version)?是否可以重新安装flutter,或者下载最新版本(进入上面安装flutter的目录并执行git clone https://github.com/flutter/flutter.git)?
    • @埃迪埃迪埃迪。 Flutter 1.22.4 • 通道稳定 • github.com/flutter/flutter.git 框架 • 修订版 1aafb3a8b9(13 天前) • 2020-11-13 09:59:28 -0800 引擎 • 修订版 2c956a31c0 工具 • Dart 2.10.4
    【解决方案2】:

    尝试运行命令:flutter 也许你得到一些错误,并修复它。 我也得到错误:

    The term 'Unblock-File' is not recognized as the name of a cmdlet, function, sc
    ript file, or operable program. Check the spelling of the name, or if a path wa
    s included, verify that the path is correct and try again.
    At line:1 char:13
    + Unblock-File <<<<  -Path 'C:\src\flutter/bin/internal/update_dart_sdk.ps1'; &
     'C:\src\flutter/bin/internal/update_dart_sdk.ps1'
        + CategoryInfo          : ObjectNotFound: (Unblock-File:String) [], Comman
       dNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    
    Flutter requires PowerShell 5.0 or newer.
    See https://flutter.dev/docs/get-started/install/windows for more.
    Building flutter tool...
    Running pub upgrade...
    The current Dart SDK version is 2.1.0-dev.9.4.flutter-f9ebf21297.
    
    Because flutter_tools requires SDK version >=2.2.2 <3.0.0, version solving
      failed.
    

    我修好了。

    【讨论】:

      【解决方案3】:

      如果在 Windows 上并且颤振医生没有响应,这意味着它需要管理权限。 只需转到搜索栏,找到命令提示符并以管理员身份运行。应该这样做。

      【讨论】:

        【解决方案4】:

        如果在 Windows 上尝试打开任务管理器并结束/终止所有 dart.exe 进程,可能是颤振医生在等待另一个 dart.exe 进程以完成该进程,无论出于何种原因都没有完成

        【讨论】:

          猜你喜欢
          • 2020-03-11
          • 1970-01-01
          • 2018-09-17
          • 1970-01-01
          • 2021-10-21
          • 1970-01-01
          • 1970-01-01
          • 2019-06-09
          • 1970-01-01
          相关资源
          最近更新 更多