[bug]: Can not run dart pub global activate flutterfire_cli
Is there an existing issue for this?
- [X] I have searched the existing issues.
CLI Version
0.2.4
Firebase Tools version
10.6.0
Flutter Doctor Output
flutter doctor Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.0.5, on macOS 12.2.1 21D62 darwin-arm, locale en-IN) [✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1) [!] Xcode - develop for iOS and macOS (Xcode 13.3.1) ! CocoaPods 1.10.2 out of date (1.11.0 is recommended). CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side. Without CocoaPods, plugins will not work on iOS or macOS. For more info, see https://flutter.dev/platform-plugins To upgrade see https://guides.cocoapods.org/using/getting-started.html#installation for instructions. [✓] Chrome - develop for the web [✓] Android Studio (version 2021.1) [✓] VS Code (version 1.70.0) [✓] Connected device (2 available) [✓] HTTP Host Availability
! Doctor found issues in 1 category.
Description
Error when activating flutterfire-cli Output is below
flutter pub global activate flutterfire_cli Resolving dependencies...
- ansi_styles 0.3.2+1
- args 2.3.1
- async 2.9.0
- characters 1.2.1
- ci 0.1.0
- cli_util 0.3.5
- clock 1.1.1
- collection 1.16.0
- dart_console 1.1.2
- deep_pick 0.10.0
- ffi 2.0.1
- file 6.1.2
- flutterfire_cli 0.2.4
- http 0.13.5
- http_parser 4.0.1
- interact 2.1.1
- intl 0.17.0
- json_annotation 4.6.0
- matcher 0.12.12
- meta 1.8.0
- path 1.8.2
- petitparser 5.0.0
- platform 3.1.0
- process 4.2.4
- pub_semver 2.1.1
- pub_updater 0.2.2
- pubspec 2.3.0
- quiver 3.1.0
- source_span 1.9.1
- stack_trace 1.10.0
- string_scanner 1.1.1
- term_glyph 1.2.1
- tint 2.0.0
- typed_data 1.3.1
- uri 1.0.0
- win32 2.7.0
- xml 5.4.1 (6.1.0 available)
- yaml 3.1.1 Building package executables... Failed to build flutterfire_cli:flutterfire: ~/tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutterfire_cli-0.2.4/bin/flutterfire.dart:21:8: Error: Error when reading '~/tools/flutter/.pub-cache/_temp/diroX1MOM/~/tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutterfire_cli-0.2.4/lib/src/command_runner.dart': No such file or directory import 'package:flutterfire_cli/src/command_runner.dart'; ^ ~/tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutterfire_cli-0.2.4/bin/flutterfire.dart:22:8: Error: Error when reading '~/tools/flutter/.pub-cache/_temp/diroX1MOM/~/tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutterfire_cli-0.2.4/lib/src/common/strings.dart': No such file or directory import 'package:flutterfire_cli/src/common/strings.dart'; ^ ~/tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutterfire_cli-0.2.4/bin/flutterfire.dart:23:8: Error: Error when reading '~/tools/flutter/.pub-cache/_temp/diroX1MOM/~/tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutterfire_cli-0.2.4/lib/src/common/utils.dart': No such file or directory import 'package:flutterfire_cli/src/common/utils.dart' as utils; ^ ~/tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutterfire_cli-0.2.4/bin/flutterfire.dart:24:8: Error: Error when reading '~/tools/flutter/.pub-cache/_temp/diroX1MOM/~/tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutterfire_cli-0.2.4/lib/src/flutter_app.dart': No such file or directory import 'package:flutterfire_cli/src/flutter_app.dart'; ^ ~/tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutterfire_cli-0.2.4/bin/flutterfire.dart:25:8: Error: Error when reading '~/tools/flutter/.pub-cache/_temp/diroX1MOM/~/tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutterfire_cli-0.2.4/lib/version.g.dart': No such file or directory import 'package:flutterfire_cli/version.g.dart'; ^ ~/tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutterfire_cli-0.2.4/bin/flutterfire.dart:26:8: Error: Error when reading '~/tools/flutter/.pub-cache/_temp/diroX1MOM/~/tools/flutter/.pub-cache/hosted/pub.dartlang.org/pub_updater-0.2.2/lib/pub_updater.dart': No such file or directory import 'package:pub_updater/pub_updater.dart'; ^ ~/tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutterfire_cli-0.2.4/bin/flutterfire.dart:30:11: Error: Undefined name 'cliVersion'. print(cliVersion); ^^^^^^^^^^ ~/tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutterfire_cli-0.2.4/bin/flutterfire.dart:32:15: Error: Undefined name 'isCI'. if (utils.isCI) return; ^^^^ ~/tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutterfire_cli-0.2.4/bin/flutterfire.dart:35:24: Error: Method not found: 'PubUpdater'. final pubUpdater = PubUpdater(); ^^^^^^^^^^ ~/tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutterfire_cli-0.2.4/bin/flutterfire.dart:39:23: Error: Undefined name 'cliVersion'. currentVersion: cliVersion, ^^^^^^^^^^ ~/tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutterfire_cli-0.2.4/bin/flutterfire.dart:44:9: Error: Method not found: 'logPromptNewCliVersionAvailable'. logPromptNewCliVersionAvailable(packageName, latestVersion), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ~/tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutterfire_cli-0.2.4/bin/flutterfire.dart:43:34: Error: Method not found: 'promptBool'. final shouldUpdate = utils.promptBool( ^^^^^^^^^^ ~/tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutterfire_cli-0.2.4/bin/flutterfire.dart:48:15: Error: Method not found: 'logCliUpdated'. print(logCliUpdated(packageName, latestVersion)); ^^^^^^^^^^^^^ ~/tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutterfire_cli-0.2.4/bin/flutterfire.dart:56:30: Error: Undefined name 'FlutterApp'. final flutterApp = await FlutterApp.load(Directory.current); ^^^^^^^^^^ ~/tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutterfire_cli-0.2.4/bin/flutterfire.dart:57:11: Error: Method not found: 'FlutterFireCommandRunner'. await FlutterFireCommandRunner(flutterApp).run(arguments); ^^^^^^^^^^^^^^^^^^^^^^^^ ~/tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutterfire_cli-0.2.4/bin/flutterfire.dart:58:8: Error: 'FlutterFireException' isn't a type. } on FlutterFireException catch (err) { ^^^^^^^^^^^^^^^^^^^^ ~/tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutterfire_cli-0.2.4/bin/flutterfire.dart:59:15: Error: Undefined name 'activeSpinnerState'. if (utils.activeSpinnerState != null) { ^^^^^^^^^^^^^^^^^^ ~/tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutterfire_cli-0.2.4/bin/flutterfire.dart:61:15: Error: Undefined name 'activeSpinnerState'. utils.activeSpinnerState!.done(); ^^^^^^^^^^^^^^^^^^ pub finished with exit code 1
Steps to reproduce
Run dart pub global activate flutterfire_cli
Expected behavior
Flutterfire stops, sould have activated
Screenshots
No response
Additional context and comments
No response
for me it worked:
flutter build apk
I have never seen the error before. I recommend installing the latest FlutterFire CLI:
dart pub global activate flutterfire_cli 0.3.0-dev.18 --overwrite