-
以管理员身份打开
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
相关推荐
好的佩奇10 小时前
蓝牙之广播与扫描wuxianda103012 小时前
2026 苹果审核 4.3 (a) 被拒全解析|Guideline 4.3a spam 马甲包拒审原因 + 避坑方案恋猫de小郭1 天前
Flutter THLC 的 WebView 滚动终于从 70 FPS 提升到 120 FPS好的佩奇1 天前
Dart 之扩展类型恋猫de小郭2 天前
Flutter 下 AOT 一个你怎么都想不出来的 Bug ,JIT 正常的计算,在 AOT 居然算错了好的佩奇3 天前
Dart 之扩展方法好的佩奇3 天前
蓝牙之经典蓝牙传奇开心果编程3 天前
【Flutter踩坑排雷】第19课:路由硬编码坑|字符串路由书写错误,页面跳转失败排查Nerd(BUG版)4 天前
Flutter学习day5--事件手势与命中测试传奇开心果4 天前
【Flutter踩坑排雷】第5课:扩展方法冲突坑|同名扩展引发编译歧义,故障规避手段