[flutter] "Error: Unable to find git in your PATH." 문제 해결 (MS Windows)

  • 문제
    • Error: Unable to find git in your PATH.
    • 혹은, 프로세스가 그냥 종료가 되어 버림
  • 해결법
    • command line 을 administrator mode로 실행해서 해본다.
    • 필요한 PATH를 등록한다.
      • C:\Windows\System32
      • C:\Windows\Wbem
      • C:\Windows\System32\WindowsPowerShell\v1.0
      • C:\Windows\System32\OpenSSH
      • C:\Program Files\Git\cmd
      • C:\Program Files\Git\bin
      • C:\Program Files\Git\mingw64\bin
      • C:\flutter\bin
    • git 을 새로 설치한다.
    • flutter를 새로 설치한다.
    • git의 "safe. Directory" 설정을 맞춰 준다.
      • git config --global --add safe.directory '*' <= 이 경우, 전체인데, 어디가 빠진 곳인지 모를 경우, 이렇게 하면 해결된다.

댓글

이 블로그의 인기 게시물

Next.js에서 자연스러운 Page Transition 방법

[flutter] Android - Package간 sdk version 등이 맞지 않아 오류가 발생하는 경우

[Windows] Chocolatey upgrade