-bash: fultter: command not found

安装flutter时,安装时可以执行flutter doctor -v ,当关闭黑窗口再次打开输入时,就出现 -bash: fultter: command not found

网上答案:

如果你也出现这个错误可能是这个原因,查看一下你的path是否设置正确,

mac终端打开.bash_profile命令:open ~/.bash_profile

添加

export PATH_TO_FLUTTER_GIT_DIRECTORY=/Users/aa/flutter     //flutter的安装目录

export PATH=${PATH}:${PATH_TO_FLUTTER_GIT_DIRECTORY}/bin

让.bash_profile生效的命令是:source .bash_profile

你可能感兴趣的:(flutter,flutter安装)