Whenever I run flutter doctor
in my terminal (without admin priviledges) with either C:\Program Files\Git\bin
, ```C:\Program Files\Git\cmd`` or any path containing the git executable, the cmd closes instantly.
If I run the command on cmd with admin priviledges, it works. If I run the command on cmd without any git dir added to path, it works. I run Windows 11 and I have powershell 7.3.2 installed.
I have seen similar issues like this and others, tried the several solutions in their threads but none seems to work.
flutter doctor -v
output (when run without git in Path):
[√] Flutter (Channel stable, 3.7.5, on Microsoft Windows [Version 10.0.22000.613], locale en-US)
• Flutter version 3.7.5 on channel stable at C:\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision c07f788888 (8 days ago), 2023-02-22 17:52:33 -0600
• Engine revision 0f359063c4
• Dart version 2.19.2
• DevTools version 2.20.1
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
• Android SDK at C:\Users\HP\AppData\Local\Android\sdk
• Platform android-UpsideDownCake, build-tools 33.0.2
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-9505619)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[X] Visual Studio - develop for Windows
X Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2022.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-9505619)
[√] VS Code, 64-bit edition (version 1.76.0)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension version 3.60.0
[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22000.613]
• Chrome (web) • chrome • web-javascript • Google Chrome 110.0.5481.178
• Edge (web) • edge • web-javascript • Microsoft Edge 90.0.818.66
[√] HTTP Host Availability
• All required HTTP hosts are available
! Doctor found issues in 1 category.