flutterwindowsvisual-studio-code

Flutter: "flutter doctor" command not found in VS Code terminal ? Windows


I am encountering an issue where the flutter doctor command is not recognized in the integrated terminal of Visual Studio Code or any other terminal outside of the Flutter SDK's bin directory.

Desired Behavior:

I want to be able to run the flutter command (including flutter doctor) from any terminal window or within VS Code without having to navigate to the Flutter SDK's bin directory first.

Specific Problem/Error:

When I run flutter doctor in the VS Code terminal, I receive the following error message:

Bash flutter is not recognized However, I can successfully run flutter doctor by navigating to the [Path to your Flutter SDK]/bin directory and executing it using ./flutter doctor.


Solution

  • You need restart your computer after edit environment path