news 2026/5/11 11:57:50

Windows Flutter fvm 多版本管理安装与常用指令(详细使用)

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
Windows Flutter fvm 多版本管理安装与常用指令(详细使用)
  • 以管理员身份打开PowerShell执行下面命令,安装好Chocolatey(choco)

    $ 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'))

    验证安装成功

    $ choco -v
  • 然后按着 fvm 官方安装文档 进行安装,没几个步骤。

    测试是否安装成功

    $ fvm -v
  • 常用指令

    Global 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
版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/5/10 13:51:00

MacBook蝴蝶键盘终极修复指南:彻底解决按键双击问题

MacBook蝴蝶键盘终极修复指南:彻底解决按键双击问题 【免费下载链接】Unshaky A software attempt to address the "double key press" issue on Apples butterfly keyboard [not actively maintained] 项目地址: https://gitcode.com/gh_mirrors/un/Un…

作者头像 李华
网站建设 2026/5/10 12:07:56

Awaken:如何实现全平台EPUB阅读无缝同步的终极指南

Awaken:如何实现全平台EPUB阅读无缝同步的终极指南 【免费下载链接】Awaken 一个基于WebDAV的全平台EPUB阅读器,支持笔记、进度、书签同步,支持Kindle笔记导入。 项目地址: https://gitcode.com/gh_mirrors/aw/Awaken 在数字阅读时代&…

作者头像 李华
网站建设 2026/5/10 23:13:28

宽论框架下量化交易三大工具的协同作战

宽论作为一种科学、系统的交易理念,其量化交易的三大工具 —— 弹论、CDVA 分型以及带鱼短鱼理论,在市场实战中相互配合、协同作战,为投资者构建了一个强大的交易体系。深入探究这三大工具的协同机制,对投资者提升交易水平具有重要…

作者头像 李华
网站建设 2026/5/10 23:13:27

Path of Building:流放之路角色构建的艺术与科学

在《流放之路》这个充满无限可能的游戏世界里,每个玩家都是自己角色的建筑师。而Path of Building,这个被誉为"流放者必备工具"的离线构建工具,正是将这种建筑艺术推向极致的魔法画笔。它不仅仅是一个工具,更是一位懂你…

作者头像 李华
网站建设 2026/5/10 23:13:27

Beyond Compare 5密钥生成技术深度解析:逆向工程与数字签名机制

在软件授权验证领域,Beyond Compare 5作为一款专业的文件对比工具,其授权机制采用了复杂的RSA数字签名技术。本文将从技术原理、安全机制和实现方法三个维度,深入剖析该软件的密钥生成技术。 【免费下载链接】BCompare_Keygen Keygen for BCo…

作者头像 李华