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.

 

解决:

arch -arm64 brew install xxx

 

posted @ 2023-06-27 12:14  蓓蕾心晴  阅读(1445)  评论(0编辑  收藏  举报