Mac flutter 出现 zsh: command not found: flutter
1、open ~/.bash_profile不存在(does not exist.)就先 vim ~/.bash_profile 之后 wq 保存,再执行 open2、增加对应path查找flutter sdk 的解压路径,pwd查看全路径,之后写入 bash_profile 文件,路径替换为自己的对应路径export PATH=对应的全路径/flutter/bin:$PATHexport FLU
·
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 查看依赖
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐

所有评论(0)