原安装指令:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
改为新指令:
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
对应的,其它使用场景也需要在指令前加上
arch -x86_64 brew install xxx
arch -x86_64 brew update xxx
如果不想每次都加前辍也可以执行以下指令
alias ibrew=arch -x86_64 brew
来源:oschina
链接:https://my.oschina.net/quicker/blog/4795055