尝试使用brew安装gh



在我的Macbook中有以下变量:然而,当我尝试安装gh时,我得到下面的错误:

export HTTPS_PROXY = http://myproxy.com: 8080

export HTTP_PROXY = http://myproxy.com: 8080

wferreir@QQN6DR99LY ~ % brew install gh

警告:git 2.36.1已经安装并且是最新的。要重新安装2.36.1,请运行:Brew重新安装git警告:/opt/homebrew中没有远程"origin",跳过更新!警告:在/opt/homebrew/Library/Taps/homebrew/homebrew-core中没有远程'origin',跳过更新!

= =比;下载https://ghcr.io/v2/homebrew/core/gh/manifests/2.10.1

curl:(22)请求的URL返回错误:407

错误:gh:下载资源"gh_bottle_manifest"失败

下载失败:https://ghcr.io/v2/homebrew/core/gh/manifests/2.10.1wferreir@QQN6DR99LY ~ %

我通过为GIT配置代理解决了这个问题:

git config --global http.proxy http://proxyUsername:proxyPassword@proxy.server.com:port

最新更新