Javascript

failed to execute command: null/Error: spawnSync git ENOENT

킹king 2023. 8. 2. 15:23
반응형

 

failed to execute command: null/Error: spawnSync git ENOENT (이건 git bash안깔아서 생기는 오류)

your current branch 'master' does not have any commits yet (이건 계정 한번 등록해야함)

 

아니 오픈소스 한번 받아서 보려는데 아무리 npm run start해도 안되길래 도대체 뭐지 하다가 생각해보니... 깃을 깔지 않았었다....

 

1. git bash 설치

https://git-scm.com/downloads

 

Git - Downloads

Downloads macOS Windows Linux/Unix Older releases are available and the Git source repository is on GitHub. GUI Clients Git comes with built-in GUI tools (git-gui, gitk), but there are several third-party tools for users looking for a platform-specific exp

git-scm.com

설치하시고..

 

2. 계정 등록

$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com

등록하시고..

 

$ git config --replace-all user.name

만약에 잘못등록해서 지워야한다면 이렇게 하시고....

모든 게시물(특히 과거 게시물)은 잘못된 방법으로 처리한것을 좋다고 써놨을 수 있습니다. 참고만 하시고 틀린게 있다면 댓글 남겨주세요~