文章目录
FVM官网
https://fvm.app/docs/getting_started/installation/
参考
https://www.cnblogs.com/ybmj/p/15955420.html
http://www.manongjc.com/detail/28-pusxchmmantflah.html
安装前电脑里已经有了flutter ,版本太高导致很多旧版本运行不起来。
原先已经有了环境变量的配置。
E:\*****\bin
E:\*****\flutter\bin\cache\dart-sdk\bin
1.安装
dart pub global activate fvm
Warning: Pub installs executables into C:\Users\Administrator\AppData\Local\Pub\Cache\bin, which is not on your path.
You can fix that by adding that directory to your system’s “Path” environment variable.
2.配置FVM环境变量
将上面的 警告里路径复制下来 ,添加到环境变量中~
完成后测试
fvm
出现 Flutter Version Management: A cli to manage Flutter SDK versions.
3.修改一下fvm文件缓存地址,以免以后下载的flutter sdk下载到C盘
4. 默认fvm的下载地址是在C盘,修改fvm缓存地址
fvm config --cache-path E:\Flutter\FlutterSDK\
5.下载安装Flutter SDK
1.使用命令下载
fvm install 版本号
fvm install 2.10.0
2.Flutter中文资源网https://flutter.cn/docs/developmen