-
以管理员身份打开
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
相关推荐
世人万千丶1 天前
Flutter 框架跨平台鸿蒙开发 - 恐惧清单应用Utopia^1 天前
Flutter 框架跨平台鸿蒙开发 - 21天挑战一直在想名1 天前
Flutter 框架跨平台鸿蒙开发 - 黑白屏AI_零食1 天前
Flutter 框架跨平台鸿蒙开发 - 孤独指数应用浮芷.1 天前
Flutter 框架跨平台鸿蒙开发 - 儿童技能打卡墙应用Utopia^1 天前
Flutter 框架跨平台鸿蒙开发 - 重力感知提子拌饭1331 天前
昼夜节律下的肝脏代谢清除率演算仪:基于鸿蒙Flutter的双路流场与酶解粒子对照架构小雨天気.1 天前
Flutter 框架跨平台鸿蒙开发 - 直觉训练器应用浮芷.1 天前
Flutter 框架跨平台鸿蒙开发 - 姿势纠正助手应用一直在想名1 天前
Flutter 框架跨平台鸿蒙开发 - 影子收藏家