美文网首页
macOS下报错-bash: flutter: command

macOS下报错-bash: flutter: command

作者: Pandakingli | 来源:发表于2019-09-30 14:56 被阅读0次
-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

相关文章

网友评论

      本文标题:macOS下报错-bash: flutter: command

      本文链接:https://www.haomeiwen.com/subject/bdhluctx.html