在执行brew update时,我得到以下错误:
fatal: Unable to find remote helper for 'https'
Error: Fetching /usr/local failed!
fatal: Unable to find remote helper for 'https'
Error: Fetching /usr/local/Library/Taps/caskroom/homebrew-cask failed!
Already up-to-date.发布于 2016-05-15 08:22:30
这是您的git安装存在的问题;您可以使用以下命令更新到最新版本来修复此问题:
brew install git发布于 2021-09-02 18:45:50
这是因为brew指向非标准的github源。使用以下命令将brew指向正确的github URL。
git -C "/usr/local/Homebrew“远程设置url源https://github.com/Homebrew/brew
在此之后运行brew更新。
发布于 2022-02-09 18:23:36
我也遇到了这种情况,对我来说,这是因为有问题的存储库是通过ssh克隆的,而我的私钥是受密码保护的。为了解决这个问题,我使用了ssh-agent。
eval `ssh-agent`
ssh-add一旦我添加了密钥并输入了密码,brew update就成功了。
https://stackoverflow.com/questions/37216073
复制相似问题