我使用MacBook专业版并安装了flutter,但当我输入flutter doctor时,它没有响应(大约10分钟过去了)。
这个issue对我来说也一样,但我不安装Mamp软件。
发布于 2018-08-10 21:38:51
听起来并不傻,你上网了吗?当我断开网络连接时,这种情况就会发生在我身上。
另外,当你这样做的时候会发生什么?
> flutter upgrade那么它是否仍然锁定,或者在最终继续运行flutter doctor之前是否真的检查了版本?
发布于 2019-09-02 07:53:53
尝试运行命令: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.然后我把它修好。
发布于 2020-05-07 03:32:01
如果在Windows上且flutter doctor没有响应,则意味着它需要管理权限。只需转到搜索栏,找到命令提示符并以管理员身份运行它。这应该可以了。
https://stackoverflow.com/questions/51783727
复制相似问题