Flutter Doctor Doesn’t Work On Command Prompt or Power Shell Window ?

· 4 min read
Flutter Doctor Doesn't Work On Command Prompt or Power Shell Window
Flutter Doctor Doesn't Work On Command Prompt or Power Shell Window

Once User installs and configure Flutter SDK and add git along with a path to Flutter SDK. Sometimes it may happen that Flutter Doctor Doesn’t Work On Command Prompt or Power Shell Window?

How to Resolve a Flutter Doctor Doesn’t Work On Command Prompt or Power Shell Window?

To Run flutter from the command prompt on your windows system, it requires three things as below:

  • path to the bin folder of downloaded Flutter SDK I have downloaded and saved the SDK in my documents so for me path will be
C:\Users\username\Documents\flutter_windows_v0.11.9-beta\flutter\bin
  • Where.exe located at C:\Windows\System32

Note: You need to download git from here if you don’t find the path in step 3.

  • git-cmd.exe located in C:\Program Files\Git\git-cmd.exe

Now users need to add this environment variable to the system environment with a variable name as PATH and value as

C:\Windows\System32;C:\Program Files\Git\git-cmd.exe;C:\Users\username\Documents\flutter_windows_v0.11.9-beta\flutter\bin

We will get output like the below:

Enviroment Varible Path
Environment Variable Path

Now the user needs to Restart Command Prompt and we will get output like the below:

Enviroment Varible Path
Environment Variable Path

User needs to make sure that the environment variables are set correctly,

  • Go to “Control Panel > User Accounts > User Accounts > Change my environment variables
  • Under “User variables” check if there is an entry called “Path”:

If the entry does exist, append the full path to flutter\bin using; as a separator from existing values.

If the entry does not exist, create a new user variable named Path with the full path to flutter\bin as its value.

  •  Reboot your computer

Once both above steps are done, run flutter doctor

User needs to simply check all the Environmental Variables … these are present in Path Variable or not, in case of Flutter.

C:\Windows\System32;
C:\Program Files\Git\cmd;
C:\Program Files\Java\jdk1.8.0_221\bin;
D:\flutter_windows_v1.7.8+hotfix.4-stable\flutter\bin\

The System32 file is an important file for git.

Conclusion:

In this article, We have learned about Flutter Doctor Doesn’t Work On Command Prompt or Power Shell Window?

Hope you like this article. You can drop us your valuable feedback to serve you better.

Thanks for Reading !!! Keep Fluttering !!!

FlutterAgency.com is our portal Platform dedicated to Flutter Technology and Flutter Developers. The portal is full of cool resources from Flutter like Flutter Widget GuideFlutter ProjectsCode libs and etc.

FlutterAgency.com is one of the most popular online portal dedicated to Flutter Technology and daily thousands of unique visitors come to this portal to enhance their knowledge on Flutter.

Leave a Reply