2016-04-29 51 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