【问题标题】:Can't npm install or use git after upgrading to MacOS Mohave 10.14.4 (18E226)升级到 MacOS Mojave 10.14.4 (18E226) 后无法 npm install 或使用 git
【发布时间】:2019-09-22 06:01:59
【问题描述】:

这在重启后工作了一段时间,但后来我遇到了同样的错误:

curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to ssl.icu-project.org:443

request failed ... read ECONNRESET

这发生在 brew、git 和 npm 上。

这是我的 brew 配置:

HOMEBREW_VERSION: 2.1.1
ORIGIN: https://github.com/Homebrew/brew
HEAD: b4f73e61649fcfc5aaa779c311e2514619ce01e7
Last commit: 3 weeks ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 422ef941c0a2b69e9e1ab93612cfbb2ead581bf6
Core tap last commit: 3 days ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_LOGS: /Users/home/Library/Logs/Homebrew
CPU: octa-core 64-bit haswell
Homebrew Ruby: 2.3.7 => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
Clang: 10.0 build 1001
Git: 2.21.0 => /usr/local/bin/git
Curl: 7.54.0 => /usr/bin/curl
macOS: 10.14.4-x86_64
CLT: 10.2.0.0.1.1552586384
Xcode: N/A
CLT headers: 10.2.0.0.1.1552586384

我尝试过的事情:

  • 重新安装 brew、curl、git、node 等
  • export HOMEBREW_FORCE_BREWED_CURL=1
  • 不存在代理或代理设置
  • npm config set registry http://registry.npmjs.org/

此错误迫使我每隔几个小时重新启动一次,并且在我工作时令人沮丧。自从我升级到 MacOS Mojave 后才开始发生这种情况,我认为这是 curl 的问题 - 但我无法修复它。

【问题讨论】:

  • 你安装Xcode命令行工具了吗?
  • @evolutionxbox 是的,我已经安装了!

标签: git macos curl npm homebrew


【解决方案1】:

问题出在我的防病毒软件上。更具体地说:卡巴斯基

重新安装后问题不再存在。发布此内容以防将来对其他人有所帮助。

【讨论】:

  • 不错的收获
猜你喜欢
  • 2019-12-22
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-06-14
  • 2019-03-02
  • 2019-06-05
  • 1970-01-01
  • 2018-11-29
相关资源
最近更新 更多