苹果系统(M1芯片)使用brew提示路径不对

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

卸载老的路径,重新安装下就好了