因為原本是intel的mac , 最近移轉到M1Mac上後,發現brew無法使用
網路找到方法,只要依序執行下面的指令 , 就可以安裝成功
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval $(/opt/homebrew/bin/brew shellenv)' >> /Users/$USER/.zprofile
eval $(/opt/homebrew/bin/brew shellenv)
brew help
參考資料:https://stackoverflow.com/questions/66822196/macbook-m1-chip-fixing-zsh-command-not-found-brew-error