2024-10-07|閱讀時間 ‧ 約 0 分鐘

M1無法安裝HomeBrew

因為原本是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

分享至
成為作者繼續創作的動力吧!
© 2024 vocus All rights reserved.