2016-09-28 109 views
0

我在运行基本Bower命令(如安装或列表)时遇到问题。当我运行Bower说失败的错误时,它运行良好。 Bower使用git配置有什么区别?由于ECMDERR导致Bower无法下载“服务器终止了SSL握手”

▶ bower list 
bower check-new  Checking for new versions of the project dependencies... 
bower ECMDERR  Failed to execute "git ls-remote --tags --heads https://github.com/angular/bower-angular.git", exit code of #128 fatal: unable to access 'https://github.com/angular/bower-angular.git/': Server aborted the SSL handshake 

Additional error details: 
fatal: unable to access 'https://github.com/angular/bower-angular.git/': Server aborted the SSL handshake 

▶ git ls-remote --tags --heads https://github.com/angular/bower-angular-animate.git | head 
f52f83800624062443335a830112e3ae38b5c9cc refs/heads/master 
859e626c875659842d3582a0072fbb439b39f3a2 refs/tags/v1.2.0 
4e6147d34c5e08bf9e7743bd36da35f19b265bf0 refs/tags/v1.2.0-rc.1 
6ccd2d5b5b96506c98fe6158b7542dcf23a912a3 refs/tags/v1.2.0-rc.2 
91aa0a12a19605b1166bf43d1444247a7320bd92 refs/tags/v1.2.0-rc.3 
db9d2de12caaaa6603b06af504c6969a36431d0b refs/tags/v1.2.1 
0243df12570a70b5d07f83723e94e2a461982c99 refs/tags/v1.2.10 
bd29251aa180d9cccff11dd583c928513662b101 refs/tags/v1.2.10-build.2136+sha.8ea8da4 
fe72f28cc866777d0b07a6c44a66d75c2e3f22c9 refs/tags/v1.2.10-build.2139+sha.61eb426 
b3b929d865c80e290935602587f2e0178b826262 refs/tags/v1.2.10-build.2140+sha.51a7f9d 

回答

2

误差等效于网络超时在bower install命令的条款。通常会发生很长的文件bower.json

你可以试着运行以下命令:

rm -rf bower_components bower cache clean bower install

另外,如果你再打bower install,你可以看到如下的一个: 1> it has been able to download all the libraries and doesn't throw that error again 2> it throws the error, but for a different entry in your bower.json

鲍尔建设应在几个反复之后得到解决执行相同的bower install命令。无需再次发出bower cache clean命令。

作为一个类比,它试图在网络超时后ping同一台服务器。解决方案不是很干净,但它对我有用。

如果这有帮助请投票!干杯.. :)

PS:如果我找到更清洁的方式将更新。

0

你可能想检查你的SSH密钥在github上。 尝试先删除它们。如果不起作用,请使用新生成的密钥进行更新。

我有这个问题,我可以git fetchgit ls-remote --tags --heads https://...这解决了我的问题。

相关问题