mac 下使用 brew 安装包报错 error: Cannot install under Rosetta 2 in ARM default prefix (/opt/homebrew)!

mac 下使用 brew 安装包报错 error: Cannot install under Rosetta 2 in ARM default prefix (/opt/homebrew)!

To rerun under ARM use:

arch -arm64 brew install ...

To install under x86_64, install Homebrew into /usr/local.
image

解决办法:

arch -arm64 brew install xxx
posted @ 2023-11-16 19:18  流年中渲染了微笑  阅读(432)  评论(0编辑  收藏  举报