mac安装homebrew失败:Failed to connect to raw.githubusercontent.com port 443: Connection refused
·
在mac终端执行homebrew安装命令
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
安装提示
GUOdeMacBook-Pro:~ ****$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
解决方案
浏览器直接访问
https://raw.githubusercontent.com/Homebrew/install/master/install.sh
将访问的内容拷贝,创建install.sh文件,并保存在本地。
在终端中,cd到install.sh的文件路径,执行
./install.sh
安装就会开始了。
GUOdeMacBook-Pro:downloads ****$ ./install.sh
Password:
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
Press RETURN to continue or any other key to abort
==> Downloading and installing Homebrew...
remote: Enumerating objects: 5234, done.
remote: Counting objects: 100% (5234/5234), done.
remote: Compressing objects: 100% (25/25), done.
remote: Total 21584 (delta 5217), reused 5216 (delta 5209), pack-reused 16350
Receiving objects: 100% (21584/21584), 7.44 MiB | 93.00 KiB/s, done.
Resolving deltas: 100% (16563/16563), completed with 1020 local objects.
From https://github.com/Homebrew/brew
* [new branch] dependabot/bundler/Library/Homebrew/sorbet-0.5.5890 -> origin/dependabot/bundler/Library/Homebrew/sorbet-0.5.5890
* [new branch] dependabot/bundler/Library/Homebrew/sorbet-runtime-0.5.5890 -> origin/dependabot/bundler/Library/Homebrew/sorbet-runtime-0.5.5890
* [new branch] github-container-registry -> origin/github-container-registry
更多推荐
所有评论(0)