关于MAC OSX 安装homebrew中的报错信息

时间:2024-04-06 07:37:33

换电脑之后需要安装homebrew用于安装一些插件,但是受限于一些特殊原因,homebrew老是安装失败,报错信息如下:

==> Tapping homebrew/cask

Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask'...

fatal: unable to access 'https://github.com/Homebrew/homebrew-cask/': transfer closed with outstanding read data remaining

Error: Failure while executing; `git clone https://github.com/Homebrew/homebrew-cask /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask` exited with 128.

Follow the instructions here:

  https://github.com/Homebrew/homebrew-cask#reporting-bugs

/usr/local/Homebrew/Library/Homebrew/utils.rb:265:in `safe_system'

/usr/local/Homebrew/Library/Homebrew/tap.rb:273:in `install'

/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:142:in `run'

/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:92:in `run'

/usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:9:in `cask'

/usr/local/Homebrew/Library/Homebrew/brew.rb:110:in `<main>'

 

 

拿去百度 结果千篇一律,除了抄,就是抄,写blog真的不是为了抄的。。

 

根据上面报错信息我们可以得知,这个操作是为了从github地址https://github.com/Homebrew/homebrew-cask/ clone到本地的/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask位置下。

于是,直接打开这个github地址,直接下载代码:关于MAC OSX 安装homebrew中的报错信息

解压后放入本地对应位置:

关于MAC OSX 安装homebrew中的报错信息

 

安装成功,可以使用homebrew安装对应的服务了