How to run the Homebrew installer under Rosetta 2 on M1 Macbook

Got an answer from a developer in the Homebrew github

arch -x86_64 /bin/bash -c "$(curl -fsSL"

Use this to install packages:

arch -x86_64 brew install <package>

If you have not yet installed Rosetta 2 to emulate Intel CPUs on ARM Macs, you will get the error arch: posix_spawnp: /bin/bash: Bad CPU type in executable. Prompt a Rosetta 2 installation with:

softwareupdate --install-rosetta

Leave a Comment