沈云峰
发布于 2023-05-05 / 2 阅读 / 0 评论 / 0 点赞

MacOS从intel芯片迁移到m1芯片导致无法正常使用brew

brew upgrade
Error: Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/local)!
Please create a new installation in /opt/homebrew using one of the
"Alternative Installs" from:
  https://docs.brew.sh/Installation
You can migrate your previously installed formula list with:
  brew bundle dump

1.安装Rosetta2

/usr/sbin/softwareupdate --install-rosetta --agree-to-license

2.使用Rosetta2重新安装Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

评论