MacBook M1 homebrew install error

Cannot install in Homebrew under Rosetta 2 in ARM default prefix (/opt/homebrew)!
- Make sure Rosetta2 installed. If not, install with below command (make sure the terminal is not checked on "Open using Rosetta" in app info)/usr/sbin/softwareupdate --install-rosetta --agree-to-license- Then remove '/opt/homebrew' out of your PATH in (.zprofile or .bash_profile).- Right-click on terminal -> Get Info -> Check to "Open using Rosetta"…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store