news 2026/4/18 12:06:00

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/4/18 5:33:50

【Miracast 协议详解】

Miracast 协议详解 一、Miracast 概述 Miracast 基于 Wi‑Fi Display (WFD) 标准,用于将移动设备屏幕无线投射到显示设备。主要组件: Wi‑Fi Direct (P2P):建立直连RTSP:会话控制RTP/RTCP:音视频传输UIBC:用…

作者头像 李华
网站建设 2026/4/17 23:34:06

Windows美化革命:DWMBlurGlass打造个性化桌面体验

还在为Windows系统千篇一律的界面感到厌倦?DWMBlurGlass作为一款革命性的Windows美化工具,能够为你的桌面标题栏添加令人惊艳的透明和模糊特效,彻底改变你的数字工作环境。 【免费下载链接】DWMBlurGlass Add custom effect to global system…

作者头像 李华
网站建设 2026/4/18 0:05:49

免费查重软件有哪些?2025年最全评测与选择指南

在学术写作和内容创作过程中,查重是保障原创性的关键一步。对于预算有限的学生、研究者及广大作者而言,免费查重软件是进行初稿筛查和日常质检的实用工具。了解市面上有哪些可靠的免费选项,并掌握其特点与最佳使用场景,能帮助你在…

作者头像 李华
网站建设 2026/4/18 7:05:24

重新定义编程字体体验:Intel One Mono 深度解析

重新定义编程字体体验:Intel One Mono 深度解析 【免费下载链接】intel-one-mono Intel One Mono font repository 项目地址: https://gitcode.com/gh_mirrors/in/intel-one-mono 当你凝视代码时,代码也在凝视着你。这种每日数小时的"对视&q…

作者头像 李华
网站建设 2026/4/17 19:20:40

vue环境配置教程

一、前言(重构价值定位 读者收益承诺) ✅ 适配版本(2024.10 实测无坑):Node.js 16.20.2 LTS(稳定王者)/ 18.19.0 LTS(Vite 5.x 最优解)、Vue CLI 5.0.8、Vite 5.1.4、V…

作者头像 李华