unix 如何升级到Flutter 3.7?

prdp8dxp  于 2024-01-07  发布在  Unix
关注(0)|答案(1)|浏览(186)

我想升级到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版本管理器。所以我做了,这是结果:

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


为什么它说未找到命令,我如何修复它?

z9zf31ra

z9zf31ra1#

为什么它说未找到命令,我如何修复它?
引用激活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"

字符串

相关问题