为什么我的VS代码终端无法识别“颤振”一词?

时间:2019-05-28 08:19:46

标签: flutter flutter-dependencies

我正在运行一个flutter devices的命令来检查已连接的设备,但是它给出了以下错误:

flutter: The term 'flutter' is not recognized as the name of a cmdlet, function, script file, or operable program. 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 devices
+ ~~~~~~~
    + CategoryInfo          : ObjectNotFound: (flutter:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException 

flutter devices

2 个答案:

答案 0 :(得分:2)

在VS代码中进行批量下载,路径变量设置和“ flutter”启用活动之后,您可能会忘记重新启动已经打开的VS代码。因此重新启动VS代码

答案 1 :(得分:0)

u必须添加路径变量,例如C:\ Program Files \ flutter \ bin,然后重新启动Visual Code。现在您可以在终端上运行命令了。