Flutterfire 刚刚添加了一个 CLI 供我们使用,但我在flutterfire configure command
. 我不断收到此错误:
我找到 0 个 Firebase 项目。选择项目 liveasy-1。FirebaseCommandException:尝试运行命令时 Firebase CLI 发生错误。命令:firebase --version 错误:FlutterFire CLI 目前还需要安装官方 Firebase CLI,请参阅https://firebase.google.com/docs/cli#install_the_firebase_cli了解如何安装它。
即使我已经安装了 Firebase CLI 并且可以firebase --version
毫无问题地运行。我安装了独立的二进制文件,当它不起作用时,我也使用 npm 安装了它。我可以登录并查看我的项目列表,但运行flutterfire configure
似乎是一个问题。我也无法在 Visual Studio Code 中访问任何 Firebase 命令。
我应该在环境变量的PATH中添加一些东西吗?我已经添加了 flutterfire 所在的cache/bin/,但我不知道如何对 Firebase 执行相同的操作。
bash: flutter: command not found
Run Code Online (Sandbox Code Playgroud)
嗨,大家好!显然没有扑命令正在Android的工作室,我相信,我想我的项目的根目录运行它的终端上.先感谢您
我正在关注 flutter + firebase codelab,并且我一直在我的 android 应用程序中配置 firebase,我已经在我的计算机上全局安装了 flutterfire cli 并将 bin 导出到我的路径中。
\nexport PATH="$PATH:~/source/flutter/bin"\nexport PATH="$PATH":"$HOME/.pub-cache/bin"\n
Run Code Online (Sandbox Code Playgroud)\n但是,当我尝试使用 flutterfire cli 时,仍然会抛出以下错误。
\nflutterfire\n/home/dio/.pub-cache/bin/flutterfire: 8: dart: not found\n
Run Code Online (Sandbox Code Playgroud)\n这个错误让我相信我的系统上没有安装 dart,但是......
\ndart\nA command-line utility for Dart development.\n\nUsage: dart <command|dart-file> [arguments]\n\nGlobal options:\n-h, --help Print this usage information.\n-v, --verbose Show additional command output.\n --version Print the Dart SDK version.\n --enable-analytics Enable analytics.\n --disable-analytics Disable analytics.\n\nAvailable commands:\n analyze Analyze Dart code in a directory.\n compile Compile Dart to various formats.\n create Create …
Run Code Online (Sandbox Code Playgroud)