기본 콘텐츠로 건너뛰기
[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 '*' <= 이 경우, 전체인데, 어디가 빠진 곳인지 모를 경우, 이렇게 하면 해결된다.
댓글
댓글 쓰기