You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Flutter项目集成Firebase失败,执行flutterfire configure报错求助

Flutter项目集成Firebase失败,执行flutterfire configure报错求助

大家好,我第一次尝试在Flutter项目里集成Firebase,但现在卡在了执行flutterfire configure这一步,怎么都跑不起来,想请各位大佬帮忙看看问题出在哪。

我已经做了这些准备操作:

  • 从官方渠道下载并安装了Firebase CLI
  • 给项目的pubspec.yaml文件添加了这些Firebase相关依赖:
    firebase_core: ^3.2.0
    firebase_auth: ^5.1.2
    cloud_firestore: ^5.1.0
    firebase_storage: ^12.1.1
    dash_chat_2: ^0.0.21
    firebase_analytics: ^11.2.0
    
  • 已经把Firebase CLI的安装路径添加到系统环境变量里了

可是当我跟着教程执行flutterfire configure命令时,却抛出了下面的错误:

FirebaseCommandException: An error occured on the Firebase CLI when attempting to run a command.
COMMAND: firebase --version
ERROR: The FlutterFire CLI currently requires the official Firebase CLI to also be installed, see 官方安装文档获取安装方法。

明明我已经安装过Firebase CLI了,还是出现这个提示,实在摸不着头脑。有没有朋友遇到过类似的情况,或者能给我一些排查的方向呀?

备注:内容来源于stack exchange,提问作者Sambid Dahal

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.16 09:03:14