CMD close itself when i enter "dart pub global activate flutterfire_cli"

3.8k views Asked by At

So i was trying to use firebase for my flutter backend. When i tried to enter the command "dart pub global activate flutterfire_cli" the cmd Suddenly close itself.

I tried to open the cmd as an administrator and run the command but it it still close itself.

Note: I already install the Firebase CLI via npm.

please help :(

5

There are 5 answers

1
maajk3l On

Don't heve install Git to your system. Try instal git.

0
Mahad On

You might not have the git in your machine,
Install the git and then run

dart pub global activate flutterfire_cli

I hope this time you not get any error

0
Marco Trejo On

Please follow the next 3 single steps:

1.- Open a cmd window and try to install git using the next command: winget install --id Git.Git -e --source winget

2.- After that install dart SDK with the command: choco install dart-sdk

3.- After install you should be running the command without trouble dart pub global activate flutterfire_cli

0
Mostafa Sully On

I had the same problem and I solved it by run cmd from dart sdk file .

0
Daniel Olivares On

I solved it by reinstalling the dart SDK