医生命令颤抖,但无反应

时间:2018-08-10 09:49:03

标签: flutter nothing

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

flutter doctor

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

4 个答案:

答案 0 :(得分:0)

听起来并不傻,您是否在线连接?当我断开与Internet的连接时,会发生这种情况。

此外,当您这样做时会发生什么?

lapply(sampleList, function(x) {
       nm1 <- intersect(names(x), names(refData1))
       x[nm1] <- lapply(x[nm1], function(x)
             type.convert(as.character(x), as.is = TRUE))
       x})

它是否仍会锁定,还是在最终继续运行Flutter Doctor之前实际检查版本?

答案 1 :(得分:0)

尝试运行命令: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.

我修复它。

答案 2 :(得分:0)

如果在Windows上尝试打开任务管理器并结束/终止所有dart.exe进程,则可能是扑朔迷离的医生正在等待另一个dart.exe进程完成该操作,无论出于何种原因

答案 3 :(得分:0)

如果在Windows上并且Flutter Doctor没有响应,则表明它需要管理特权。 只需转到搜索栏,找到命令提示符并以管理员身份运行它。那应该做。