gpt4 book ai didi

firebase - 我如何解决 zsh : command not found: flutterfire in macOS?

转载 作者:行者123 更新时间:2023-12-05 08:15:11 25 4
gpt4 key购买 nike

我关注了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如何解决这个问题?我这是任何环境错误?

最佳答案

在 Mac 上设置 zsh 的路径:

  1. 运行 vim ~/.zshrc
  2. i
  3. 粘贴 export PATH="$PATH":"$HOME/.pub-cache/bin"
  4. esc
  5. 输入:wq!并回车
  6. 重启终端

如果成功 which flutterfire 将起作用。

关于firebase - 我如何解决 zsh : command not found: flutterfire in macOS?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71487625/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com