git clone -b master https://github.com/flutter/flutter.git
./flutter/bin/flutter --version
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
export PATH=`pwd`/flutter/bin:$PATH
- 按照上述步骤操作时: 执行
flutter doctor
会提示-bash: fultter: command not found
执行 source ~/.bashrc
即可
网友评论