Flutter 术语';打开';未识别为cmdlet的名称
我试图打开模拟器,但VSCode告诉我:Flutter 术语';打开';未识别为cmdlet的名称,flutter,dart,Flutter,Dart,我试图打开模拟器,但VSCode告诉我: open : The term 'open' 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 ch
open : The term 'open' 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
+ open -a simulator
+ ~~~~
+ CategoryInfo : ObjectNotFound: (open:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PowerShell的搜索路径与
bash
和sh
不同。要从macOS上的PowerShell打开模拟器,您需要:
/usr/bin/open-a模拟器
为什么会被否决?