I have installed the Flutter SDK but when I run
flutter doctor
It says I haven’t. How do you fix this
I ran
flutter doctor
and was expecting there to be what I had which was recommended and what I didn’t have which was recommended. Instead I got this:
'flutter' is not an internal or external command.
2
Answers
You need to add path your bin directory to system environments
Enter System Env
Open Env Variables
Click Edit
Click New and add your flutter/bin path then apply
After this steps try to run
flutter doctor
On Mac I have encountered this issue before. If you are on Windows I don’t know the exact solution but the general idea is the same.
On Mac go to your .zshrc or .bash file. Add this line:
Restart your terminal. Then run Flutter Doctor and it should work.
This is the manual way to do this as, recently, exporting to path doesn’t always work while following installation instructions.