2016-04-29 50 views
1

当我在终端敲命令:错误时进入凉亭安装角gridster

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吗?
不熟悉这种错误信息。

回答

0

至少尝试使用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 
+0

你知道,这个问题目前还不得而知,但在我等了10分钟,写了相同的命令提示符下,它的工作。也许在后台仍然有一些初始化事件仍在工作? –

+0

@KunalOjha不过,尝试https而不是git更安全。 – VonC