The term ‘flutter’ is not recognized as the name of a cmdlet, function, script file, or operable program
The error message “The term ‘flutter’ is not recognized as the name of a cmdlet, function, script file, or operable program” indicates that Flutter is not properly set up in your system’s PATH environment variable. To fix this, you need to add the Flutter SDK’s bin
directory to your PATH.
Here’s how you can do this on Windows:
C:\src\flutter
, then your Flutter SDK path is C:\src\flutter
.bin
directory. For example, if your Flutter SDK is in C:\src\flutter
, add C:\src\flutter\bin
.flutter --version
to verify that Flutter is now recognized.Once you have added Flutter to your PATH, you should be able to run the flutter pub get
command successfully in your project directory.
Editor