Brew install in Mac Apple Silicon

M
Dec 29, 2020

Assumption

  • Your default sh profile is ~/.zshrc
  • You have Rosetta 2

Easy, you just use

arch -x86_64 $@

as a prefix, for example, in case of brew

arch -x86_64 $@ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Done !!

Extra

to install Valet for PHP Laravel use.

test -d ~/.composer && bash ~/.composer/vendor/bin/valet install || bash ~/.config/composer/vendor/bin/valet install

In order to install the Valet, you should install nginx , php@X.Y (in this case php@7.3) and use brew to create symlink.

--

--