環境
macOS Big Sur 11.6
問題
brew install
を実行したら以下のエラーが出た。
ターミナル
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 -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
その後に
ターミナル
arch -arm64 brew 〇〇
これでインストールできました!