brew install git-lfs
Updating Homebrew...
mac 安装软件,经常会遇到Updating Homebrew 一直卡着,很慢,也不知道进度
解决慢的问题
方法1
# 更换镜像源,然后正常安装即可。
cd `brew --repo`
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
以下是常用的镜像源,可以试下自己用哪个快
- https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git - 清华
- https://mirrors.ustc.edu.cn/brew.git - 中科大
- https://mirrors.aliyun.com/homebrew/brew.git 阿里
阿里homebrew镜像配置方法:
https://developer.aliyun.com/mirror/homebrew
方法2
在显示Updating Homebrew… 的时候,按下ctrl+c一次,会终止更新操作,直接执行安装,可临时解决问题
进度条问题
方法1:
v2ex上有人说:
Homebrew 已更新到 2.5.1 版本,该问题解决。
方法2:
打开mac的“活动监视器”,选择“网络”,找到“git-remote-https ”,能看到已经接收到的数据量。可以看到运行情况