我试图跟随角度材料tutoriel http://www.angular-meteor.com/tutorials/whatsapp/ionic/bootstrapping使用离子。
当我尝试bower install
时,我收到以下错误:
bower not-cached git://github.com/driftyco/ionic-bower.git#1.2.4
bower resolve git://github.com/driftyco/ionic-bower.git#1.2.4
bower ECMDERR Failed to execute "git ls-remote --tags --heads
git://github.com/driftyco/ionic-bower.git", exit code of #128 ssh: Could not resolve
hostname https: Name or service not known fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
Additional error details:
ssh: Could not resolve hostname https: Name or service not known
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
我在这里发现了许多同样问题的问题,而且很多问题都是通过运行
来解决的git config --global url."https://".insteadOf git://
但是我试过了,它并没有解决我的问题。 无论如何要解决它吗?如果没有,除了凉亭之外还有其他吗?
答案 0 :(得分:1)
问题在于.gitconfig文件(在我的情况下位于c:/ users / my-account-name /)
我刚刚删除了这些行
[url "https:/"]
insteadOf = git://
[url "http://"]
insteadOf = git://
它有效。我想在我的情况下,我不应该运行命令
git config --global url."https://".insteadOf git://