这里写自定义目录标题
步骤
- 如果你的电脑中之前安装过Homebrew,请先删除。在M1芯片的Mac电脑中,Homebrew安装在文件夹:‘/opt/homebrew’. 执行> sudo rm -rf /opt/homebrew
- 然后依次执行下列命令:
/usr/bin/ruby -e "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install)"
git -C "$(brew --repo)" remote set-url origin https://mirrors.ustc.edu.cn/brew.git
git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
- 如果出现问题,可参考这里。
该文提供了在M1芯片的Mac电脑上卸载并重新安装Homebrew的步骤,包括删除/opt/homebrew目录,使用指定脚本安装,以及更改Homebrew及core仓库的镜像源至ustc.edu.cn。
5206

被折叠的 条评论
为什么被折叠?



