0
点赞
收藏
分享

微信扫一扫

Mac flutter 出现 zsh: command not found: flutter

天行五煞 2022-02-23 阅读 109

1、open ~/.bash_profile  

不存在(does not exist.)就先 vim ~/.bash_profile 之后 wq 保存,再执行 open
2、增加对应path
查找flutter sdk 的解压路径,pwd查看全路径,之后写入 bash_profile 文件,路径替换为自己的对应路径

export PATH=对应的全路径/flutter/bin:$PATH
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
export PUB_HOSTED_URL=https://pub.flutter-io.cn

3、source ~/.bash_profile

4、执行 flutter doctor 查看依赖

举报

相关推荐

0 条评论