我关注了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 的路径:
- 运行
vim ~/.zshrc
- 按
i
- 粘贴
export PATH="$PATH":"$HOME/.pub-cache/bin"
- 按
esc
- 输入
:wq!
并回车 - 重启终端
如果成功 which flutterfire
将起作用。
关于firebase - 我如何解决 zsh : command not found: flutterfire in macOS?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71487625/