brew curl: (35) Recv failure: Connection reset by peer
时间: 2023-10-13 19:04:35 浏览: 374
引用和引用中提到的问题是在安装Homebrew时出现的。错误信息"curl: (35) Recv failure: Connection reset by peer" 表示网络连接被对端重置,导致接收失败。这可能是由于网络问题造成的,例如连接超时或网络不稳定。
解决此问题的方法是使用国内源。在引用中提到的解决办法是使用以下命令来安装Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
如果出现上述错误,可以尝试使用引用中提到的国内源来安装Homebrew:
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
这样可以从国内的源下载Homebrew安装文件,减少网络连接问题的可能性。请确保您的网络连接稳定,并尝试使用上述命令来安装Homebrew。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [解决macOS安Homebrew 报错: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL](https://blog.csdn.net/weixin_41948075/article/details/124354375)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [成功解决:curl: (35) TCP connection reset by peer](https://blog.csdn.net/Myx74270512/article/details/128035590)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文