【问题标题】:Error when entering bower install angular-gridster进入凉亭安装 angular-gridster 时出错
【发布时间】:2016-04-29 03:38:58
【问题描述】:

当我在终端中点击命令时:

bower install angular-gridster

我收到以下错误:

bower ECMDERR
Failed to execute "git ls-remote --tags --heads git://github.com/sdecima/javascript-detect-element-resize.git", 
exit code of #128 fatal: Could not read from remote repository.  
Please make sure you have the correct access rights and the repository exists.

Additional error details:
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

这是我要访问的仓库的链接:https://github.com/ManifestWebDesign/angular-gridster

我必须先创建一个 bower.json 吗?
不熟悉这种错误信息。

【问题讨论】:

    标签: angularjs git github bower bower-install


    【解决方案1】:

    至少尝试使用 https 而不是 git 协议(如bower issue 102):

    git config --global url."https://".insteadOf git://
    

    如果telnet github.com 9418 不起作用,则意味着 git 协议(使用端口 9418)将无法访问 GitHub。

    清除缓存 (issue 50) 也有帮助(在 Windows 上:C:\user<user>\AppData\Roaming\bower\cache)。或bower cache clean

    您也可以永久更改网址:

    bower i https://github.com/ManifestWebDesign/angular-gridster.git --save
    

    【讨论】:

    • 你知道,问题仍然未知,但我等了 10 分钟并写了相同的命令提示符后,它工作了。也许在后台仍有一些初始化事件仍在工作?
    • @KunalOjha 不过,尝试使用 https 而不是 git 更安全。
    猜你喜欢
    • 2017-03-14
    • 2016-06-13
    • 1970-01-01
    • 2017-09-22
    • 2013-07-03
    • 2014-02-09
    • 2013-05-23
    • 2015-09-09
    • 1970-01-01
    相关资源
    最近更新 更多