簡體   English   中英

Flutterfire 配置錯誤嘗試運行命令

[英]Flutterfire configure error attempting to run a command

我已經安裝了 Firebase CLI,但是當我在我的應用程序文件夾中運行 flutterfire configure 時,我收到以下錯誤:

FirebaseCommandException: An error occured on the Firebase CLI when attempting to run a command.
COMMAND: firebase --version
ERROR: The FlutterFire CLI currently requires the official Firebase CLI to also be installed, see https://firebase.google.com/docs/cli#install_the_firebase_cli for how to install it.

有什么我想念的嗎?

首先,運行命令“dart pub global activate flutterfire_cli” 運行命令“dart pub global activate flutterfire_cli”后,您應該會收到一條警告消息,您只需將路徑添加到路徑變量即可。 Go 到 Mac 中的 Finder。 Select “Go->Home”在頂部。 在主頁內,使用鍵盤快捷鍵(Command + Shift +.(句點))顯示隱藏文件。 然后,查找文件.zshrc。 在 zshrc 文件中添加警告消息的路徑,它應該如下所示: export PATH="$PATH":"$HOME/.pub-cache/bin"

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM