在M1芯片的MacBook上装homebrew
输入指令:
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
报错
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
尝试了好几遍不成功之后,直接用safari打开https://raw.githubusercontent.com/Homebrew/install/master/install.sh这个链接(可能需要梯子),就可以获取到这个文件了
将它储存为.sh文件,记住保存的位置。
在终端允许下面命令
arch -x86_64 /bin/bash /文件储存位置/install.sh
建议打开全局代理,不然可能会出现连不上github的问题:
fatal: unable to access 'https://github.com/Homebrew/brew/': OpenSSL SSL_read: Operation timed out, errno 60
然后就装好啦