当我点击终端中的命令时:
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.
以下是我要访问的repo的链接:https://github.com/ManifestWebDesign/angular-gridster
我是否必须首先创建一个bower.json? 不熟悉这种错误信息。
答案 0 :(得分: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