-
以管理员身份打开
PowerShell执行下面命令,安装好Chocolatey(choco)sh$ Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))验证安装成功
sh$ choco -v -
然后按着 fvm 官方安装文档 进行安装,没几个步骤。
测试是否安装成功
sh$ fvm -v -
常用指令
shGlobal options: -h, --help Print this usage information. --verbose Print verbose output. -v, --version Print the current version. Available commands: api Provides JSON API access to FVM data for integrations and tooling config Configure global FVM settings and preferences dart Runs Dart commands using the project's configured Flutter SDK destroy Completely removes the FVM cache and all cached Flutter SDK versions doctor Shows detailed information about the FVM environment and project configuration exec Executes commands with the project's configured Flutter SDK in the environment flavor Executes Flutter commands using the SDK version configured for a specific project flavor flutter Runs Flutter commands using the project's configured SDK version fork Manage Flutter fork aliases global Sets a Flutter SDK version as the global default install Installs a Flutter SDK version and caches it for future use list Lists all Flutter SDK versions installed by FVM releases Lists all Flutter SDK releases available for installation remove Removes Flutter SDK versions from the cache spawn Executes Flutter commands using a specific SDK version use Sets the Flutter SDK version for the current project
Windows Flutter fvm 多版本管理安装与常用指令(详细使用)
卡尔特斯2025-12-12 11:37
相关推荐
年小个大21 小时前
受 go-zero 启发,我给 Flutter 整了套 MVI-BLoC 脚手架Zender Han1 天前
Flutter 自适应(Adaptive)与响应式(Responsive)设计实践:官方推荐方案详解恋猫de小郭2 天前
社区版 Dart macros?一个可以解决 JSON 序列化的Fluter “宏编程”第三方包qziovv3 天前
前端转flutter——项目架构、初始化恋猫de小郭3 天前
Flutter 3.47 首坑,analysis_options 问题连环回归xiangxiongfly9153 天前
Flutter flutter_gen_runner总结GitLqr3 天前
Flutter 3.47 与 Dart 3.13:你必须了解的迁移指南程序员老刘3 天前
跨平台开发地图 | 2026年8月杉氧4 天前
Flutter 跨平台多端适配与 Android/iOS 一键自动化打包发布恋猫de小郭4 天前
Dart 3.13 大更新,感觉比 Flutter 更带劲