官網:https://flutter.dev/docs/get-started/install/macos
![](https://img.haomeiwen.com/i3445110/5ba4416d20084dbb.png)
![](https://img.haomeiwen.com/i3445110/2e13dc6055996050.png)
![](https://img.haomeiwen.com/i3445110/ec6ca42bfbeefca3.png)
把以下複製進去,記得修改你真實的flutter,命令行重啟
接着保存退出后,在终端输入 source ~/.bash_profile 即可使用flutter
export PATH=/Users/aneng/flutter/bin:$PATH
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
export PUB_HOSTED_URL=https://pub.flutter-io.cn
网友评论