【问题标题】:bash:firebase command not found in flutterbash:firebase 命令在颤振中找不到
【发布时间】:2019-09-16 20:35:28
【问题描述】:

我正在尝试在 android studio 终端中运行“firebase 初始化函数”,但它显示未找到 firebase 命令。我也查了谷歌,但不幸的是没有找到任何相关的问题或答案。

【问题讨论】:

  • 您是否安装了 Firebase 工具?

标签: firebase flutter


【解决方案1】:

似乎您还没有安装 firebase 工具。要这样做,请在终端中输入 首先从 nodejs.org 安装 node js

npm install -g firebase-tools

现在您可以使用firebase login 登录,登录后您现在可以运行firebase init

【讨论】:

  • @G griffo 我再次安装了 firebase-tools 但安装后我尝试运行命令 firebase login 仍然显示 firebase command not found
  • 你的 npm 工作正常吗?首先 npm install - firebase-tools 返回错误
  • @G griffo 是的,它在安装 npm install 时返回错误 - firebase-tools.npm ERR!代码 E404 npm 错误! 404 未找到 - 获取 registry.npmjs.org/- - 未找到 npm 错误! 404 npm 错误! 404 '-@latest' 不在 npm 注册表中。 npm 错误! 404 你应该让作者发布它(或自己使用名称!)npm ERR! 404 npm 错误! 404 请注意,您也可以从 npm ERR 安装! 404 tarball、文件夹、http url 或 git url。 npm 错误!可以在以下位置找到此运行的完整日志:npm ERR! C:\Users\Nabil\AppData\Roaming\npm-cache_logs\2019-09-17T10_38_56_047Z-debug.log
  • 如果你在 Linux 上 sudo npm install -g firebase-tools .需要超级用户
  • 我用的是windows
猜你喜欢
  • 2019-04-24
  • 2020-03-11
  • 1970-01-01
  • 1970-01-01
  • 2018-11-12
  • 2021-01-07
  • 2021-07-04
  • 2020-08-30
  • 2019-03-05
相关资源
最近更新 更多