news 2026/8/5 17:07:13

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/8/5 0:49:22

审计场景中录音转文字工具的技术实现与选型指南

在审计工作中,现场访谈录音的高效处理是提升生产力的关键环节。审计人员常常需要从长时间的对话中提取结构化信息,传统手工转写不仅效率低下,还容易产生信息遗漏。本文将从技术实现角度分析录音转文字工具的核心能力,并提供多个主…

作者头像 李华
网站建设 2026/8/4 19:28:21

Livewire完整入门指南:5分钟掌握Laravel动态界面开发

Livewire完整入门指南:5分钟掌握Laravel动态界面开发 【免费下载链接】livewire livewire:这是Laravel Livewire的一个官方示例项目,适合学习如何使用Livewire组件来构建动态网页。特点包括实时更新、易于测试、与Laravel框架集成良好等。 …

作者头像 李华
网站建设 2026/8/5 4:38:25

Origami Simulator实战指南:从零开始掌握数字折纸艺术

Origami Simulator实战指南:从零开始掌握数字折纸艺术 【免费下载链接】OrigamiSimulator Realtime WebGL origami simulator 项目地址: https://gitcode.com/gh_mirrors/or/OrigamiSimulator 还在为复杂的折纸设计发愁吗?想不想在虚拟环境中随心…

作者头像 李华
网站建设 2026/8/5 8:11:06

波浪带鱼理论:过滤无效信号,提升投资收益的法宝

在投资领域,波浪带鱼理论犹如一颗璀璨的明珠,为投资者在复杂多变的市场中指明方向。波浪带鱼理论以其独特的方式,能够有效过滤无效信号,显著提高投资收益。深入了解这一理论的内涵、优势及应用方法,对于投资者而言至关…

作者头像 李华