当我跑步时brew --version
,花了30秒返回响应。其他brew
命令甚至更慢。我的CPU空闲约90%。我的机器上所有其他程序都运行良好。我拥有最新版的Brew,并且Brew医生通过了。
关于我可以尝试的任何想法(除了重新启动计算机外)?
$ brew --version
Homebrew 1.5.4
Homebrew/homebrew-core (git revision bda76; last commit 2018-02-26)
$ brew doctor
Your system is ready to brew.
$ brew config
HOMEBREW_VERSION: 1.5.4
ORIGIN: https://github.com/Homebrew/brew
HEAD: 021fe22e3c982b08346422d1e7897e929a709380
Last commit: 2 weeks ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: bda76108c4f452684682a89f1d7fb7cd4acf8557
Core tap last commit: 4 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_NO_ANALYTICS_THIS_RUN: 1
CPU: quad-core 64-bit haswell
Homebrew Ruby: 2.3.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/bin/ruby
Clang: 9.0 build 900
Git: 2.15.0 => /usr/local/bin/git
Curl: 7.54.0 => /usr/bin/curl
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
Java: N/A
macOS: 10.12.6-x86_64
Xcode: N/A
CLT: 9.2.0.0.1.1510905681
X11: N/A
你的路径是什么?
—
user151019 '18
echo $PATH
是/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
。which brew
是/usr/local/bin/brew
看起来像某种网络超时。尝试卸载网络卷(如果有)并断开与网络的连接,以查看这是否可以改善这种情况。另一件事是git repo出现问题,请检查一种安全的方式来重置它。
—
mspasov
我没有耐心,只是重新启动了计算机,这解决了问题。您可能是网络超时或git问题,这是正确的。
—
wisbucky