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
相关产品推荐
相关产品推荐

