FVM,Flutter的多版本管理工具

官网:https://fvm.app/

安装

Windows

(1)管理员方式打开powershell,安装chocolatey

1
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

(2)安装好 chocolatey,使用 chocolatey 安装 fvm

1
choco install fvm

结果出错

1
2
3
4
5
6
7
8
ERROR: The remote file either doesn't exist, is unauthorized, or is forbidden for url 'https://storage.googleapis.com/dart-archive/channels/stable/release/3.1.3/sdk/dartsdk-windows-x64-release.zip'. Exception calling "GetResponse" with "0" argument(s): "The underlying connection was closed: An unexpected error occurred on a send."
This package is likely not broken for licensed users - see https://docs.chocolatey.org/en-us/features/private-cdn.
Environment Vars (like PATH) have changed. Close/reopen your shell to
 see the changes (or in powershell/cmd.exe just type `refreshenv`).
The install of dart-sdk was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\dart-sdk\chocolateyInstall.ps1'.
 See log for details.
Progress: Downloading fvm 3.0.14... 100%

应该是网络问题,国内无法访问,当初下载flutter都是使用的镜像。

Linux

1
curl -fsSL https://fvm.app/install.sh | sudo bash
使用 Hugo 构建
主题 StackJimmy 设计