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

레고·2023년 1월 8일
0

오류

zsh: command not found: brew

Homebrew의 경로가 /usr/local/...가 아닌 /opt/homebrew/에 설정되어 있기 때문에 발생한다.

해결방법

vi -/.zshrc

입력 후

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

를 입력하면 ZSH shell이 brew command를 찾아 실행할 수 있게 된다.

profile
Way to go

0개의 댓글