Bower 安装错误 ECMDERR
bower install error ECMDERR
我正在尝试使用离子跟随 angular-material 教程 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://
但是我试过了,并没有解决我的问题。
无论如何要解决它?如果没有,除了 bower 之外还有其他方法可以做到这一点吗?
问题出在 .gitconfig 文件(对我来说位于 c:/users/my-account-name/ 中)
我刚刚删除了这些行
[url "https:/"]
insteadOf = git://
[url "http://"]
insteadOf = git://
它奏效了。我认为在我的情况下,我不应该 运行 命令
git config --global url."https://".insteadOf git://
我正在尝试使用离子跟随 angular-material 教程 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://
但是我试过了,并没有解决我的问题。 无论如何要解决它?如果没有,除了 bower 之外还有其他方法可以做到这一点吗?
问题出在 .gitconfig 文件(对我来说位于 c:/users/my-account-name/ 中)
我刚刚删除了这些行
[url "https:/"]
insteadOf = git://
[url "http://"]
insteadOf = git://
它奏效了。我认为在我的情况下,我不应该 运行 命令
git config --global url."https://".insteadOf git://