skip to Main Content

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


  1. 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 runflutter doctor

    Login or Signup to reply.
  2. 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:

    export PATH="$PATH:path_to_flutter/flutter/bin"
    

    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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search