我跟踪文档在我的颤音应用程序中添加了防火墙。我收到了一条警告和信息
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
如何解决这个问题?而我这个环境错误呢?
发布于 2022-08-07 11:01:45
为Mac上的zsh设置路径:
vim ~/.zshrc
i
export PATH="$PATH":"$HOME/.pub-cache/bin"
esc
:wq!
并按enter键如果成功的话,which flutterfire
就能工作。
发布于 2022-08-09 11:19:03
我正在使用Mac,这帮助了我,只是记住,当您遵循官方网站的以下步骤:
npm install -g firebase-tools
firebase login
dart pub global activate flutterfire_cli
flutterfire configure
如果flutterfire configure
不起作用,那么添加:
export PATH="$PATH":"$HOME/.pub-cache/bin"
从mac的主目录转到您的.bash_profile
。现在,重新启动系统,打开系统后,在VS代码中再次尝试flutterfire configure
。看起来不错。然后:
flutter pub add firebase_core
flutter pub get
发布于 2022-11-03 09:29:13
以下是对我有用的东西:dart pub global run flutterfire_cli:flutterfire configure
https://stackoverflow.com/a/72640644/20406073
https://stackoverflow.com/questions/71487625
复制相似问题