macOS下报错-bash: flutter: command

2019-09-30  本文已影响0人  Pandakingli
-bash: flutter: command not found

第一步:open ~/.bash_profile
如果报错:.bash_profile does not exist.
执行:在根目录下touch .bash_profile

第二步:编辑bash_profile文件添加
export PATH=[flutter路径]/bin:$PATH
可以直接编辑或者使用命令打开:sudo vi ~/.bash_profile

第三步:source ~/.bash_profile

第四步:执行flutter doctor

上一篇 下一篇

猜你喜欢

热点阅读