에러
command not found brew, node, dart, flutter
도전맨
2023. 10. 28. 22:19
반응형
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
로 브리뷰 설치
brew 읽기 경로 수정
특정 버전에서 Brew는 Intel 기반 Mac의 경우 '/usr/local/bin' 디렉터리에 설치되는 반면, M1/M2 Mac의 경우 Brew는 '/opt/homebrew/bin' 디렉터리에 설치됩니다. 이러한 차이로 인해 Brew 명령을 사용할 때 "zsh: 명령을 찾을 수 없음: Brew"라는 오류 메시지가 나타날 수 있습니다.
cd ~/
touch .zprofile
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> $HOME/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
위에서 차례대로 한개씩 명령어 시도
다시 brew 읽기 시도
참조
https://techsviewer.com/how-to-install-brew-on-macos-sonoma/
반응형