코딩일상

mac에서 home brew 에러 발생시 (zsh: command not found: brew)(22.07.08) 본문

기록/Troubleshooting

mac에서 home brew 에러 발생시 (zsh: command not found: brew)(22.07.08)

solutionMan 2022. 7. 8. 16:12
반응형

mac 터미널에 homebrew를 이용하여 git을 설치하는경우 아래와 같은 오류가 발생하였다.

 

zsh: command not found: brew

왜 brew라는 명령어가 없다고 뜰까 고민을 해서 구글링을 해보니

 

homebrew의 경로가 잘못 설정되어있었기에 명령어가 제대로 실행이 되지 않았고

 

아래 명령어를 입력한후

 

export PATH=/opt/homebrew/bin:$PATH

출처: https://designdepot.tistory.com/209 [Designdepot | Better Life:티스토리]

 

 

brew install git

 

명령어를 통해 git설치를 마무리 지을수 있었다.

 


참고블로그

https://designdepot.tistory.com/209

 

M1칩 Mac에서 Homebrew 설치방법

M1칩을 탑재한 새로운 맥(Big Sur)에서 Homebrew를 설치하려면 /bin/bash -c "$(curl -fsSL https://gist.githubusercontent.com/nrubin29/bea5aa83e8dfa91370fe83b62dad6dfa/raw/48f48f7fef21abb308e129a80b3214c..

designdepot.tistory.com

https://miracleground.tistory.com/entry/Mac%EC%97%90%EC%84%9C-Homebrew-%EC%84%A4%EC%B9%98-%ED%9B%84-zsh-command-not-found-brew-%EC%98%A4%EB%A5%98%ED%95%B4%EA%B2%B0

 

Mac에서 Homebrew 설치 후 zsh: command not found: brew 오류해결

맥북을 사고 기본세팅을 위해 homebrew를 까는데 엄청난 고생을 했다.. 깔아도 계속해서 찾을 수 없다는 이런 오류가 생겼다. 기존의 과정을 진행하다가 설치하려고 하면 이런 오류를 만날 수 있다

miracleground.tistory.com

 

반응형
Comments