Skip to content

Flutter Doctor #16591

Closed
Closed

Description

@shruti-techindustan

Hi
I am facing issues while installing flutter. when I am running flutter doctor I am getting one error

'where' is not recognized as an internal or external command,
operable program or batch file.
Error: Unable to find git in your PATH.

Even though I have set the git path and flutter path in environment variable. please help me to resolve that error.

Thanks!

Activity

  1. chinmaygarde commented on Apr 15, 2018

    @chinmaygarde
    Contributor

    where is a shell built-in and is probably being used to locate the location of git. Can you add more information to this issue about your environment? The platform, shell, command you executed, additional log files that the tool generates when it crashes.

  2. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Apr 15, 2018
  3. onatcipli commented on Apr 15, 2018

    @onatcipli
    Contributor

    I'm getting the same error when I try to open a new project. I add the path to my environment but it's not working. I'm using IntelliJ idea
    /*
    'where' is not recognized as an internal or external command,
    Error: Unable to find git in your PATH.
    operable program or batch file.
    */

    When I try to run flutter doctor I get this error
    /*
    'flutter' is not recognized as an internal or external command,
    operable program or batch file.
    */
    The path already added to my Environment.

  4. zoechi commented on Apr 16, 2018

    @zoechi
    Contributor

    @onatcipli what operating system?
    What happens when you execute where in a shell?

  5. onatcipli commented on Apr 19, 2018

    @onatcipli
    Contributor

    @zoechi
    Windows 10 home
    when I executed 'where' in a shell I get this error
    /*
    'where' is not recognized as an internal or external command,
    operable program or batch file.
    */

  6. zoechi commented on Apr 19, 2018

    @zoechi
    Contributor
  7. eynol commented on May 22, 2018

    @eynol

    Try to add C:\Windows\System32 to your PATH.
    The where.exe exists in C:\Windows\System32 and C:\Windows\SysWOW64 .

  8. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on May 24, 2018
  9. zoechi commented on Jul 6, 2018

    @zoechi
    Contributor

    I think this is a dup of #12129

  10. jcodinginflow commented on Jan 3, 2019

    @jcodinginflow

    I have the same problem but I got everything needed in PATH, what should I do now?

  11. zoechi commented on Jan 3, 2019

    @zoechi
    Contributor

    @jcodinginflow
    Please consider asking support questions in one of the other channels listed at http://flutter.io/support .

  12. marwa-eltayeb commented on Mar 25, 2019

    @marwa-eltayeb

    Add
    C:\Program Files\Git\bin\git.exe;C:\Program Files\Git\cmd;C:\Windows\System32
    to your PATH variable

    Do not create new variable for git but add them as I did one after another separating them by ;

  13. ansgrb commented on Jun 27, 2019

    @ansgrb

    hey I have a problem when I start to run flutter and flutter doctor
    Oops; flutter has exited unexpectedly.
    Sending crash report to Google.
    Crash report sent (report ID: cadc6c7f7b463c3a)

    flutter_08.log

  14. srigowrideo commented on Sep 19, 2019

    @srigowrideo

    same problem

  15. SinghTanisha16 commented on Dec 22, 2019

    @SinghTanisha16

    Add
    C:\Program Files\Git\bin\git.exe;C:\Program Files\Git\cmd;C:\Windows\System32
    to your PATH variable

    Do not create new variable for git but add them as I did one after another separating them by ;

    You mean 'Path' not 'PATH'

  16. atikakiki commented on Jan 15, 2020

    @atikakiki

    Hi

  17. acousticclown commented on Feb 29, 2020

    @acousticclown

    Try to add C:\Windows\System32 to your PATH.
    The where.exe exists in C:\Windows\System32 and C:\Windows\SysWOW64 .

    This fixed my problem. Thank You :)

  18. anu10943 commented on Mar 15, 2020

    @anu10943

    (TO GET flutter doctor -v running in VS CODE) : It worked for me after adding
    C:\Windows\System32;C:\flutter\flutter\bin
    to PATH of user variable and
    C:\Program Files\Git\bin;C:\Program Files\Git\cmd;C:\flutter\flutter\bin;C:\Windows\System32
    to PATH of system variable in environment variable (from edit the system environment variables )

  19. victorkabike-ios commented on Mar 24, 2020

    @victorkabike-ios

    @zoechi
    Windows 10 home
    when I executed 'where' in a shell I get this error
    /*
    'where' is not recognized as an internal or external command,
    operable program or batch file.
    */

    try to run cmd or PowerShell on your window home computer as an administrator
    This will solve this problem :)

  20. jamal4sabr commented on Apr 29, 2020

    @jamal4sabr

    Hi, when i ever i try to clone fluuter on my C\src drive inside source folder it says 'git' is not recognized as an internal or external command,
    operable program or batch file

  21. sijen commented on May 16, 2020

    @sijen

    Try to add C:\Windows\System32 to your PATH.
    The where.exe exists in C:\Windows\System32 and C:\Windows\SysWOW64 .

    thanks this solved my problem when i added the secound path in my system variable.Thank you very much

  22. f0mster commented on Aug 13, 2020

    @f0mster

    had same issue.
    after research I found out that it happens cause of

    SETLOCAL ENABLEDELAYEDEXPANSION
    

    in file flutter.bat
    when i removed this string, all back to normal behavior.

  23. kios19 commented on Nov 11, 2020

    @kios19

    Try to add C:\Windows\System32 to your PATH.
    The where.exe exists in C:\Windows\System32 and C:\Windows\SysWOW64 .

    thnks man this works

  24. RonyPixel commented on Dec 8, 2020

    @RonyPixel

    Firstly Run your Cmd as administrator .. because of the different file path..
    or try to set path of where.exe in environment variable

  25. github-actions commented on Aug 9, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  26. locked as resolved and limited conversation to collaborators on Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions