I'm trying to install Flutter on my Windows 8 computer. I unzipped files to C:/flutter and added the bin folder to the path variable. However I am stuck on the step where I have to run flutter doctor in flutter_console. The Flutter doctor hangs and only shows the blinking cursor and no output. More interestingly any other flutter command will freeze the exact same way.
screenshots
I have already tried
Running flutter console as admin
Reinstalling flutter
Installing the dev version
Use the VS code plugin to run flutter doctor
But they all led to the same result
If you delete cache folder under bin to solve some installation issues, this cause a endless loop in flutter doctor. This was my case. Show activity on this post. I had the same issue when my flutter directory wasn't located directly in my C:/ drive ("C:/flutter") Show activity on this post.
Many web developers find it difficult to access the Flutter doctor command in Command Prompt. Sometimes these involve spits error stating VersionCheckError: Command exited with code 128. Flutter offers a new tool called a Flutter Doctor.
Run your application with flutter run and attach all the log output. Run flutter analyze and attach any output of that command also. Paste the output of running flutter doctor here. Checking Dart SDK version...
Flutter doctor spits out error could be caused by the incomplete or corrupted download. Some kind of error, such as a tree is behind HEAD, involves doing- git pull How To Fix Git Error “Fatal: Bad Object Head”? When you are running the error in GIT, it could prevent you from completing the operation.
So the solution of this issue is:
flutter/bin/cache
(detail info here)flutter doctor -v
again will trigger downloading Dart SDKPS: if your network is slow because of in china, check bellow:
Do things bellow
in terminal
maybe speed up your the download speed (for me it's speed up 3x) for changing channel:
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
(detail info here)flutter channel stable
(one example of change flutter channel)flutter doctor -v
(trigger downloading SDK)Albeith in win10, these steps solved the issue for me (do not know if all are necessary)
flutter doctor
According to this git issue, this is mostly caused by installing flutter in a directory for which you do not own the priviledges. For example, the Program Files
folder: to solve then, you can try to move the installation folder
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