【发布时间】:2018-08-10 09:49:03
【问题描述】:
我使用的是 MacBook Pro 并安装了 Flutter,但是当我输入 flutter doctor 时,它没有响应(大约 10 分钟过去了)。
这个issue 跟我一样,但是我没有安装 Mamp 软件。
【问题讨论】:
我使用的是 MacBook Pro 并安装了 Flutter,但是当我输入 flutter doctor 时,它没有响应(大约 10 分钟过去了)。
这个issue 跟我一样,但是我没有安装 Mamp 软件。
【问题讨论】:
听起来很傻,你是在线连接的吗?当我与 Internet 断开连接时,就会发生这种情况。
另外,当你这样做时会发生什么?
> flutter upgrade
然后它仍然锁定,还是在最终继续并运行颤振医生之前实际上检查版本?
【讨论】:
flutter --version)?是否可以重新安装flutter,或者下载最新版本(进入上面安装flutter的目录并执行git clone https://github.com/flutter/flutter.git)?
尝试运行命令: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.
我修好了。
【讨论】:
如果在 Windows 上并且颤振医生没有响应,这意味着它需要管理权限。 只需转到搜索栏,找到命令提示符并以管理员身份运行。应该这样做。
【讨论】:
如果在 Windows 上尝试打开任务管理器并结束/终止所有 dart.exe 进程,可能是颤振医生在等待另一个 dart.exe 进程以完成该进程,无论出于何种原因都没有完成
【讨论】: