输入bower install angular 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吗
不熟悉这种错误消息。

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

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

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

清除缓存(问题50)也有帮助(在Windows:C:user<user>AppDataRoamingbowercache上)。或bower cache clean

您也可以永久更改网址:

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

最新更新