如何升级到Flutter 3.7?

问题描述 投票:0回答:1

我想升级到 Flutter 3.7,这样我就可以开始使用 Serverpod(需要 3.7 版本)。然而,当我执行

flutter upgrade
时,它会说:

Flutter is already up to date on channel stable
Flutter 3.16.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 78666c8dc5 (2 weeks ago) • 2023-12-19 16:14:14 -0800
Engine • revision 3f3e560236
Tools • Dart 3.2.3 • DevTools 2.28.4

我准备好了,为了升级到 3.7,你需要安装 Flutter Version Manager。所以我这样做了,这就是结果:

dart pub global activate fvm
Package fvm is currently active at version 2.4.1.
The package fvm is already activated at newest available version.
To recompile executables, first run `dart pub global deactivate fvm`.
Installed executable fvm.
Warning: Pub installs executables into $HOME/.pub-cache/bin, which is not on your path.
You can fix that by adding this to your shell's config file (.bashrc, .bash_profile, etc.):

  export PATH="$PATH":"$HOME/.pub-cache/bin"

Activated fvm 2.4.1.

但是当我执行

fvm install 3.7.16
时它会返回:

zsh: command not found: fvm

为什么显示命令未找到以及如何修复它?

flutter unix serverpod
1个回答
0
投票

为什么显示命令未找到以及如何修复它?

引用激活

fvm
后获得的输出:

Pub installs executables into $HOME/.pub-cache/bin, which is not on your path.
You can fix that by adding this to your shell's config file (.bashrc, .bash_profile, etc.):

  export PATH="$PATH":"$HOME/.pub-cache/bin"
© www.soinside.com 2019 - 2024. All rights reserved.