I had downloaded Flutter from https://flutter.io/setup-windows/ (flutter_windows_v0.5.1-beta.zip) in windows 10 and followed the guidelines, extracted the zip in C:\Users\M. Junaid and opened flutter-console.bat. I tried to run flutter doctor but got the following
Error: The Flutter directory is not a clone of the GitHub project.
The flutter tool requires Git in order to operate properly;
The to set up flutter, run the following command:
git clone -b beta https://github.com/flutter/flutter.git
Re-checked the dependencies Git and PowerShell which are correctly installed and path variable is also correct - C:\Users\M.Junaid\flutter\bin
I Tried These But Nothing Worked:
Flutter checks for a git folder, which is normally a hidden folder. If you copied and pasted the contents of the zip file, there is a good chance that you missed copying this hidden folder.
You can solve this by doing one of the following:
flutter
) to include all the hidden files inside, orI solved this by using this command:
git clone -b beta https://github.com/flutter/flutter.git
(Note: make sure you have git installed.)
After that, try to open flutter_console.bat
and type any flutter command to check whether it is installed properly or not.
you need to run
git init
so that the .git folder can be created.
once you do that flutter doctor will work as intended.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With