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
- 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
We will get output like the below:
Now the user needs to Restart Command Prompt and we will get output like the below:
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.
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 Guide, Flutter Projects, Code 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.