gpt4 book ai didi

firebase - 无法安装 FlutterFire CLI

转载 作者:行者123 更新时间:2023-12-02 01:47:04 24 4
gpt4 key购买 nike

https://firebase.google.com/codelabs/firebase-get-to-know-flutter#3

dart pub global activate flutterfire_cli

我按照上页的说明执行了上述命令。当我这样做时,我收到以下错误消息。

The current Dart SDK version is 2.10.5.

Because pub global activate depends on flutterfire_cli any which requires SDK version >=2.12.0 <3.0.0, version solving failed.

当我运行 flutter Upgrade 进行尝试时,我收到以下消息。

Flutter is already up to date on channel stable
Flutter 2.8.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 77d935af4d (5 weeks ago) • 2021-12-16 08:37:33 -0800
Engine • revision 890a5fca2e
Tools • Dart 2.15.1

dart pub 全局激活 flutterfire_cli

然后我再次运行上述命令,但仍然收到相同的错误消息。

我应该做什么?

最佳答案

看来您安装的 Dart SDK 版本为 2.10.5,与 flutter 附带的版本(Dart v2.15.1)分开。使用此命令升级 Dart SDK

(MacOS)

brew upgrade dart

(Windows)

choco upgrade dart-sdk

(Linux)

sudo apt-get install dart

关于firebase - 无法安装 FlutterFire CLI,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70783330/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com