我跟着document https://firebase.flutter.dev/docs/overview/#using-the-flutterfire-cli在我的 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
如何解决这个问题?我这有什么环境错误吗?
设置路径为zsh on Mac:
- Run
vim ~/.zshrc
- Press
i
- Paste
export PATH="$PATH":"$HOME/.pub-cache/bin"
- Press
esc
- Type
:wq!
并按enter
- 重新启动终端
如果成功which flutterfire
将工作。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)