Mobile/Flutter

flutter “Unable to find git in your PATH” on Flutter?

hyeongseok.ko 2021. 4. 6. 09:52
반응형

flutter을 Mac에서 설치할때는 아무 문제가 없었다(개발자는 맥을 사용하는게 정신 건강에 좋은거 같다.)

윈도우에 설치하려니 여러 문제가 다발적골절상 같이 발생한다.

 

만약에 이글을 보고 있다면 

flutter-ko.dev/docs/get-started/install/windows

 

윈도우에서 설치

 

flutter-ko.dev

flutter 사이트에서 get-started를 따라 진행 하다.

flutter path 에서 flutter doctor이 실행이 안되어서 들어왔을것이다.

인터넷에서 서핑을 하다 해결법을 찾아서 공유 합니다.

 

일단 웹서핑을 했다면

git을 새로 설치하고 

환경 변수에 하기와 같은걸 더 추가 해봐 라는 해법도 찾았을겁니다.

C:\Program Files\Git\cmd;C:\Program Files\Git\bin\git.exe;C:\Program Files\Git\cmd;C:\Windows\System32

 

저는 상기와 같은 방법으로 해결 되지 않아.

해매다 보니

stackoverflow.com/questions/51263438/how-to-solve-unable-to-find-git-in-your-path-on-flutter

 

How to solve "Unable to find git in your PATH" on Flutter?

I've just tried to install Flutter on Linux and when I try to run a flutter command (flutter doctor), I'm getting Error: Unable to find git in your PATH. How can I solve this?

stackoverflow.com

이런 해법을 찾았습니다.

just add C:\Windows\System32 to your system variable PATH. it works

시스템 변수에 해당 부분만 추가 했습니다.

C:\Windows\System32

제가 환경이 윈도우 10 이다 보니 아마 누군가도 같은 오류를 겪은거 같습니다.

윈도우 10만에 문제인지 궁금하긴 합니다.

 

추가방법

 

1. 내컴퓨터 속성

2. 고급 시스템 설정

3. 환경변수

4. 시스템 환경 변수

시스템 변수에서 Path 선택 편집 클릭

5. 환경변수 추가 창

6. 환경변수 추가

    - C:\Windows\System32

추가 후 확인 클릭

7. 완료 재확인

    - power shell 재 실행 해준 후

 

주의 : 혹시나 이다음 시운전, test drive에서 또 오류가 발생해서 해결 방법을 한번더 적어 놨다.

똑 같이 발생 하거나 이다음 프로세스 진행 하시는 분은 종료 하지 말고 한번더 참조 하시기 바란다.

impact-ko.tistory.com/90

 

flutter Error: PowerShell executable not found. Either pwsh.exe or PowerShell.exe must be in your PATH.

자 앞에서 잘 Unable to find git in your PATH를 해결하고 impact-ko.tistory.com/89 flutter “Unable to find git in your PATH” on Flutter? flutter을 Mac에서 설치할때는 아무 문제가 없었다(개발자는 맥을..

impact-ko.tistory.com

 

반응형