command not found: flutter Mac升级之后Flutter无法使用终端指令

最近升级10.15.5 之后 flutter不能用了 试了很多方法.最后成功的一种方法 分享给大家.

1.第一步打开终端
2.第二步 执行 chsh -s /bin/zsh 新版本的系统shell 发生了变化.
3.第三步 需要打开 zprofile在里面编辑路径.执行下面指令打开
touch .zprofile
vim .zprofile
4.第四步 在里面写入 export PATH=PATH:/flutter路径/bin
5.第五步 保存zprofile 然后重启电脑 (保存的方法 按下esc建 然后在按shift + wq! )

你可能感兴趣的:(command not found: flutter Mac升级之后Flutter无法使用终端指令)