You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

执行bower install遇LibreSSL SSL_ERROR_SYSCALL错误求助

Bower Install SSL错误解决指南

问题详情

执行bower install时触发以下错误:

bower ECMDERR Failed to execute "git ls-remote --tags --heads https://github.com/Palmabit-IT/angular-cookie-law.git", exit code of #128 fatal: no es posible acceder a 'https://github.com/Palmabit-IT/angular-cookie-law.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

Additional error details:
fatal: no es posible acceder a 'https://github.com/Palmabit-IT/angular-cookie-law.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

运行环境:

node v23.11.0
npm 10.9.2
bower 1.8.14

操作系统:macOS Sequoia 15.4

解决步骤

  • 验证网络连通性:先确认能正常访问GitHub,用浏览器打开目标仓库地址https://github.com/Palmabit-IT/angular-cookie-law.git,如果无法加载,排查本地网络限制或切换网络环境(如手机热点)。
  • 重置Git SSL验证配置:执行命令关闭Git的SSL验证,排除证书相关问题:
    git config --global --unset http.sslVerify
    git config --global --unset https.sslVerify
    
    后续如需恢复验证,可执行git config --global http.sslVerify true。
  • 切换Git协议为SSH:修改项目bower.json中angular-cookie-law的依赖地址,将HTTPS格式替换为SSH格式:
    原地址:https://github.com/Palmabit-IT/angular-cookie-law.git
    新地址:git@github.com:Palmabit-IT/angular-cookie-law.git
    保存后重新运行bower install。
  • 更新Git(替换LibreSSL):macOS自带的LibreSSL可能存在兼容性问题,通过Homebrew安装新版Git(内置OpenSSL):
    brew install git
    
    重启终端后,用git --version确认使用的是Homebrew安装的版本,再重新执行bower install。
  • 清除Bower缓存:清理Bower本地缓存,避免缓存的失效数据干扰:
    bower cache clean
    
    缓存清除后再次运行bower install。

内容的提问来源于stack exchange,提问作者Joan Nadal Brotat

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.13 10:12:08