1.打开终端
2.打开bash_profile
vim ~/.bash_profile
3.添加path
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
export PATH=/Users/****/Desktop/development/flutter/bin:$PATH
4.保存退出
:wq
5.刷新生效
source ~/.bash_profile
6.查看配置结果
echo $PATH
网友评论