Reputation: 527
I'm trying to run flutter pub get
from the root directory of my flutter project which is at C:\users\admin\androidstudioprojects\projectname
, but I keep getting the following error:
flutter is not recognized as an internal or external command, operable
program or batch file.
However, there are no issues found when I run flutter doctor
from C:\flutter
.
These are the paths in my environment variables:
C:\Users\admin\AppData\Local\Programs\Python\Python38-32\Scripts\
C:\Users\admin\AppData\Local\Programs\Python\Python38-32\
C:\Users\admin\AppData\Local\Microsoft\WindowsApps
C:\Users\admin\AppData\Local\atom\bin
%USERPROFILE%\AppData\Local\Microsoft\WindowsApps
flutter\bin
C:\Program Files\Git\cmd
C:\Windows\System32
Upvotes: 0
Views: 67
Reputation: 2007
Please try adding the full path of the bin in the PATH variables that would solve it.
Upvotes: 2