【问题标题】:How can i resolve zsh: command not found: flutterfire in macOS?如何解决 zsh: command not found: flutterfire in macOS?
【发布时间】:2022-06-23 23:59:14
【问题描述】:

我关注document 在我的 Flutter 应用中添加了 Firebase。 我收到了 1 条警告和消息,例如

    Warning: Pub installs executables into $HOME/.pub-cache/bin, which is not on your path.
    You can fix that by adding this to your shell's config file (.bashrc, .bash_profile, etc.):
Warning: Pub installs executables into $HOME/.pub-cache/bin, which is not on your path.
You can fix that by adding this to your shell's config file (.bashrc, .bash_profile, etc.):

  export PATH="$PATH":"$HOME/.pub-cache/bin"

Activated flutterfire_cli 0.1.1+2.

后来我用了

flutterfire configure

我得到了这个错误(不是错误)zsh: command not found: flutterfire 如何解决这个问题?我这有什么环境错误吗?

【问题讨论】:

    标签: firebase flutter


    【解决方案1】:

    通过运行命令设置flutterfire的路径 vim ~/.bash_profile 按 i 插入 粘贴路径 导出 PATH="$PATH":"$HOME/.pub-cache/bin" 按 esc 键保存然后 :wq 退出

    你可以跑 哪个flutterfire检查路径

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-11-25
      • 2015-09-04
      • 2018-05-30
      • 2021-05-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-05-23
      相关资源
      最近更新 更多