执行时出错:dart pub global activate flutterfire_cli

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

请, 当我执行这个命令时 dart pub 全局激活 flutterfire_cli

我有这条消息:

警告:可执行文件“flutterfire”运行“bin lutterfire.dart”,在flutterfire_cli中找不到该文件。

当我执行此命令时出现同样的错误

FlutterFire 配置

在flutterfire_cli包中找不到bin lutterfire.dart。

只是为了配置 firebase。

flutter firebase configure
2个回答
0
投票

只需将您的命令复制/粘贴到我的终端中,一切正常。

dart pub global activate flutterfire_cli
+ ansi_styles 0.3.2+1s... (1.6s)
+ args 2.3.1
+ async 2.9.0 (2.10.0 available)
+ characters 1.2.1
+ ci 0.1.0
+ cli_util 0.3.5
+ clock 1.1.1
+ collection 1.17.0
+ dart_console 1.1.2
+ deep_pick 0.10.0
+ ffi 2.0.1
+ file 6.1.4
+ flutterfire_cli 0.2.7
+ http 0.13.5
+ http_parser 4.0.2
+ interact 2.1.1
+ intl 0.17.0
+ json_annotation 4.7.0
+ matcher 0.12.12 (0.12.13 available)
+ meta 1.8.0
+ path 1.8.2
+ petitparser 5.0.0 (5.1.0 available)
+ platform 3.1.0
+ process 4.2.4
+ pub_semver 2.1.2
+ pub_updater 0.2.2
+ pubspec 2.3.0
+ quiver 3.1.0
+ source_span 1.9.1
+ stack_trace 1.10.0 (1.11.0 available)
+ string_scanner 1.1.1 (1.2.0 available)
+ term_glyph 1.2.1
+ tint 2.0.0
+ typed_data 1.3.1
+ uri 1.0.0
+ win32 2.7.0 (3.1.1 available)
+ xml 6.1.0 (6.2.2 available)
+ yaml 3.1.1
Downloading flutterfire_cli 0.2.7...
Downloading interact 2.1.1...
Downloading deep_pick 0.10.0...
Downloading ci 0.1.0...
Downloading ansi_styles 0.3.2+1...
Downloading pubspec 2.3.0...
Downloading uri 1.0.0...
Downloading dart_console 1.1.2...
Downloading win32 2.7.0...
Downloading ffi 2.0.1...
Building package executables... (1.7s)
Built flutterfire_cli:flutterfire.
Installed executable flutterfire.
Activated flutterfire_cli 0.2.7.

我想你的开发机器环境有问题


0
投票

我解决了再次安装 dart 的问题

 brew tap dart-lang/dart
 brew install dart
© www.soinside.com 2019 - 2024. All rights reserved.