Windows Power Shell中的Flutter Doctor返回错误 [英] Flutter Doctor in Windows Power Shell returns error
问题描述
您知道如何解决此问题吗?当我键入"flutter doctor"时,Windows Power Shell将返回以下内容:
Do you have any idea how to fix this? The Windows Power Shell returns the following when I type in "flutter doctor":
`术语'flutter'不被识别为cmdlet的名称,功能,脚本文件或可操作程序.
`The term 'flutter' is not recognized as the name of a cmdlet, function, script file, or operable program.
检查拼写名称,或者如果包含路径,请验证路径是否正确,以及再试一次.在第1行:1个字符:1个+扑医生+ ~~~~~~~ +CategoryInfo:ObjectNotFound:(flutter:String)[],
Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + flutter doctor + ~~~~~~~ + CategoryInfo : ObjectNotFound: (flutter:String) [],
CommandNotFoundException + FullyQualifiedErrorId:CommandNotFoundException`
CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException`
推荐答案
您是否已将 flutter
命令的路径添加到路径并注销/重新启动?您应该具有以下条目:
Have you added the path to the flutter
command to your path and logged out / restarted? You should have the following entries:
FLUTTER_ROOT:<下载flutter的位置>路径:< path>+%FLUTTER_ROOT%\ bin
这篇关于Windows Power Shell中的Flutter Doctor返回错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!