— How to use brew on Mac with M1 processor?— Just add arch -x86_64 before brew command.
arch -x86_64
brew
For example, the final result will be: arch -x86_64 brew upgrade
arch -x86_64 brew upgrade