Bower 安装失败,退出代码为 #128,致命错误:无法访问 'https://GitHub.com/...'
作者: valse创建于 2023年10月14日更新于 2023年10月14日
你好,从昨天开始,我们在执行 `bower install` 命令时遇到了问题。组件下载出现随机错误,例如: `ECMDERR Failed to execute "git ls-remote --tags --heads https://GitHub.com/Stuk/jszip.git", exit code of #128 fatal: unable to access 'https://GitHub.com/Stuk/jszip.git/': Failure when receiving data from the peer`。当然,并非总是同一个包出现问题,为了完成设置,我需要多次执行安装命令。这可能是我本地环境的解决方案,但在 CI 上下文中,会导致我的构建失败。我尝试了所有建议的解决方案,例如将 git 配置设置为使用 https GitHub URL 版本,并且我还将 bower 和 git 更新到最新版本,但我仍然遇到了同样的问题。谢谢
内容来源: bower/bower