Last updated: Apr 4, 2024
Reading time·3 min

The error "'flutter' is not recognized as an internal or external command, operable program or batch file" occurs for 2 main reasons:
flutter added to your user's PATH environment
variable.flutter installed on your machine.
To solve the error if you have flutter installed:



flutter\bin is located or paste it directly.
The flutter documentation recommends storing the flutter directory at
C:\src\flutter.
C:\src\flutter\bin.Note that the path points to flutter\bin, not to flutter.
C:\src\flutter\bin
We are looking for the directory that contains the flutter.bat file.

Make sure that you also have the path C:\Windows\System32 in your PATH
environment variable.
C:\Windows\System32

Once the two paths are added, confirm the changes by clicking on the "OK" button twice.
Close your Command prompt application and then reopen it.
You might also have to restart your PC, but that's not always necessary.
Open a new Command Prompt and run the flutter doctor command to make sure
everything works as expected.
flutter doctor

If the error persists, follow the step-by-step installation guide from the next subheading.
To install and configure flutter on Windows:


flutter folder to C:\src\flutter.



flutter\bin is located or paste it directly.
The flutter documentation recommends storing the flutter directory at
C:\src\flutter.
C:\src\flutter\bin.Note that the path points to flutter\bin, not to flutter.
C:\src\flutter\bin
We are looking for the directory that contains the flutter.bat file.

Make sure that you also have the path C:\Windows\System32 in your PATH
environment variable.
C:\Windows\System32

Once the two paths are added, confirm the changes by clicking on the "OK" button twice.
Close your Command prompt application and then reopen it.
You might also have to restart your PC, but that's not always necessary.
Open a new Command Prompt and run the flutter doctor command to make sure
everything works as expected.
flutter doctor

To solve the error "'flutter' is not recognized as an internal or external command, operable program or batch file", make sure:
flutter added to your user's PATH environment
variable.flutter installed on your machine.You can learn more about the related topics by checking out the following tutorials: