79684635

Date: 2025-06-30 10:43:48
Score: 0.5
Natty:
Report link

Solution for "flutter doctor not running in CMD"

To fix the issue where flutter doctor fails in CMD (e.g., showing errors like "dd93de6fb1776398bf586cbd477deade1391c7e4 was unexpected"):

  1. Uninstall Git and Flutter:

    • Uninstall Git via Windows Programs and Features.

    • Delete the Flutter folder (e.g., C:\flutter or wherever it was installed).

  2. Reinstall Git:

    • Download Git from https://git-scm.com/download/win and install to C:\Program Files\Git.

    • Select "Git from the command line and also from 3rd-party software" during setup.

    • Verify with git --version in CMD or PowerShell.

  3. Reinstall Flutter in User Directory:

  4. Run flutter doctor:

    • In CMD or PowerShell (run as Administrator), execute flutter doctor -v to verify the setup.

This resolved the issue by completely reinstalling Git and moving Flutter to the user directory (C:\Users\<YourUsername>\flutter). No additional Git configuration (e.g., safe.directory) was needed in my case.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Äxel Rocket