【软件测试-iOSUI自动化环境搭建】curl: (7) Failed to connect to raw.githubusercontent.com port 443: O

目录

    • 1、下载homebrew总是失败
      • 问题
      • 解决方案
    • 2、下载又又失败了
      • 错误
      • 解决方案
    • 3、参考

1、下载homebrew总是失败

问题

提示“curl: (7) Failed to connect to raw.githubusercontent.com port 443: Operation timed out”,
根据网上的提示说是raw.githubusercontent.comDNS污染,需要重新配置host,不过我配置之后并没有生效;
又有一种说法是,网络问题,然而我换了自己的热点之后问题也并没有得到解决;
然并卵,心累哭

解决方案

GitHub的这个raw实在是,emmmm
通过我不懈努力百度,终于让我找到了!!!!!

【软件测试-iOSUI自动化环境搭建】curl: (7) Failed to connect to raw.githubusercontent.com port 443: O_第1张图片
/usr/bin/ruby -e “$(curl -fsSL https://hellogithub.cn-bj.ufileos.com/file/brew_install.sh)”


2、下载又又失败了

错误

一波未平一波又起,这次提示错误:

error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Error: Failure while executing; `git clone https://github.com/Homebrew/homebrew-core /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core` exited with 128.
Error: Failure while executing; `/usr/local/bin/brew tap homebrew/core` exited with 1.
Failed during: /usr/local/bin/brew update --force

解决方案

安装
curl "https://nodejs.org/dist/latest/node-${VERSION:-$(wget -qO- https://nodejs.org/dist/latest/ | sed -nE 's|.*>node-(.*)\.pkg.*|\1|p')}.pkg" > "$HOME/Downloads/node-latest.pkg" && sudo installer -store -pkg "$HOME/Downloads/node-latest.pkg" -target "/"
报错
==> Tapping homebrew/core
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...
fatal: unable to access 'https://github.com/Homebrew/homebrew-core/': LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
Error: Failure while executing; `git clone https://github.com/Homebrew/homebrew-core /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1` exited with 128.
Error: Failure while executing; `/usr/local/bin/brew tap homebrew/core` exited with 1.
解决:
// 执行下面这句命令,更换为中科院的镜像:
git clone git://mirrors.ustc.edu.cn/homebrew-core.git/ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1

// 把homebrew-core的镜像地址也设为中科院的国内镜像

cd "$(brew --repo)" 

git remote set-url origin https://mirrors.ustc.edu.cn/brew.git

cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" 

git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git

// 更新
brew update

// 使用
brew install node


作者:v587大林哥丶
链接:https://www.jianshu.com/p/9118ee9da3b7
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

3、参考

  1. https://www.zhihu.com/question/35928898/answer/924797299
  2. https://www.jianshu.com/p/9118ee9da3b7

你可能感兴趣的:(软件测试随笔,操作系统)