简体   繁体   English

flutterfire 配置在终端中不起作用

[英]flutterfire configure doesn't work in the terminal

While attempting to initialize firebase in my project I constantly had an information in my terminal: 'flutterfire configure - command not found'.在我的项目中尝试初始化 firebase 时,我的终端中不断出现一条信息:“flutterfire configure - command not found”。 I followed every step from the documentation and added a new path as my terminal suggested.我按照文档中的每一步进行操作,并按照我的终端建议添加了一条新路径。 The only thing that worked for me was typing in my project terminal:唯一对我有用的是在我的项目终端中输入:

dart pub global run flutterfire_cli:flutterfire configure

instead of flutterfire configure.而不是 flutterfire 配置。 For anybody having the same issue I suggest to try out this one, it might help.对于遇到相同问题的任何人,我建议尝试这个,它可能会有所帮助。

Flutterfire is not in your PATH. Flutterfire 不在你的 PATH 中。 Activate it globally, then flutterfire configure will work.全局激活它,然后 flutterfire configure 就可以工作了。 You can do this by replacing the run with activate: dart pub global activate flutterfire_cli.您可以通过将运行替换为激活来执行此操作:dart pub global activate flutterfire_cli。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM