文章目录
Github 官网 fvm 安装
fvm 环境变量 fvm 基本命令
Github
https://github.com/leoafarias/fvm https://github.com/flutter/flutter
官网
fvm 安装
Mac/Linux 环境
curl -fsSL https://fvm.app/install.sh | bash
brew tap leoafarias/fvm
brew install fvm
brew uninstall fvm
brew untap leoafarias/fvm
Windows 环境
choco install fvm
fvm 环境变量
export PUB_HOSTED_URL = https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL = https://storage.flutter-io.cn
export PATH = "$PATH " : "$HOME /.pub-cache/bin"
export FVM_HOME = $HOME /fvm
export PATH = $HOME /fvm/default/bin:$PATH
export PATH = $PATH : $HOME /fvm/default/bin/cache/dart-sdk/bin
fvm --version
flutter --version
dart --version
fvm 基本命令
fvm --version
fvm releases
fvm install 3.13 .9
fvm list
fvm global 3.13 .9
fvm use 3.13 .9
fvm remove 3.13 .9
fvm spawn 3.13 .9 flutter build
fvm spawn 2.2 .3 flutter test
fvm destroy