在macOS High Sierra上,我已经通过安装了flutter git clone https://github.com/flutter/flutter.git
我已将文件夹添加到路径
配置系统以运行所有应用程序
但是我仍然有错误 找不到flutter命令
如果我尝试从窗口弹出而不是从命令行运行它,它将正常工作。
utente-pc:bin itmdev$ ls
cache dart.bat flutter.bat
dart flutter internal
utente-pc:bin itmdev$ flutter
-bash: flutter: command not found
答案 0 :(得分:0)
要将条目添加到macOS PATH变量,请尝试以下操作:-
sudo nano /etc/paths
/Users/user/Documents/Flutter/flutter/bin
)