简体   繁体   English

尝试使用 brew 安装 gh

[英]Trying to install gh using brew

I have the following vars in place in my Macbook.我的 Macbook 中有以下变量。 However when I try to install gh I get the ERROR below:但是,当我尝试安装 gh 时,出现以下错误:

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

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

wferreir@QQN6DR99LY ~ % brew install gh wferreir@QQN6DR99LY ~ % brew install gh

Warning: git 2.36.1 is already installed and up-to-date.警告:git 2.36.1 已经安装并且是最新的。 To reinstall 2.36.1, run: brew reinstall git Warning: No remote 'origin' in /opt/homebrew, skipping update!要重新安装 2.36.1,请运行: brew reinstall git 警告:/opt/homebrew 中没有远程“来源”,正在跳过更新! Warning: No remote 'origin' in /opt/homebrew/Library/Taps/homebrew/homebrew-core, skipping update!警告:/opt/homebrew/Library/Taps/homebrew/homebrew-core 中没有远程“来源”,跳过更新!

==> Downloading https://ghcr.io/v2/homebrew/core/gh/manifests/2.10.1 ==> 下载https://ghcr.io/v2/homebrew/core/gh/manifests/2.10.1

curl: (22) The requested URL returned error: 407 curl:(22)请求的URL返回错误:407

Error: gh: Failed to download resource "gh_bottle_manifest"错误:gh:未能下载资源“gh_bottle_manifest”

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

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

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM