개발

m1 맥북 command not found brew 해결법

콘2조아 2021. 9. 17. 14:22

터미널에서 homebrew(홈브류)를 쓸 때 brew라는 커맨드가 발견되지 않았다고 경고문이 떠서 해결책을 찾아봤다.

어떤 명령어를 치면 작동한다고 하는데 내가 쓰는 m1 맥북에서는 작동하지 않았다.

m1맥북에서는 다른 명령어를 입력해야하나보다. 스택오버플로우에서 그 방법을 찾았다.

 

홈브류를 설치한 상태에서 터미널에 다음을 입력하고 터미널을 껐다 다시 키면 brew 명령어가 잘 작동한다.

echo "export PATH=/opt/homebrew/bin:$PATH" >> ~/.zshrc

 

 

출처: https://stackoverflow.com/questions/20381128/installing-homebrew-on-os-x

 

Installing Homebrew on OS X

According to the Homebrew site, to install it, I need to type: brew install wget I get an error message: -bash: brew: command not found Found this answer. The problem, however, is I don't see br...

stackoverflow.com