bower ECMDERR 执行失败 "git ls-remote --tags --heads https://gith ub.com/grevory/angular-local-storage.git"

bower ECMDERR Failed to execute "git ls-remote --tags --heads https://gith ub.com/grevory/angular-local-storage.git"

我在 运行 时遇到此错误:

bower install

我试过这个: How to fix bower ECMDERR 还有这个: bower ECMDERR Failed to execute "git ls-remote --tags --heads > git@github.om:mobify/bellows.git", exit code of #128

他们的问题不同,因为在我的问题中,Git 使用的是 https 而不是 git。没用过代理,也没在公司网里。

我在这些环境中测试过:

Windows:7 Ultimate Service Pack 1、8.1 单一语言、10 Pro。

节点:4.4.3、5.10.0、6.0.0

npm 3.8.3

git 版本 2.8.1.windows.1

凉亭 1.7.9

我做了很多事情,所以我不确定什么是合适的解决方案。但这些是:

  1. 添加 SSH 密钥: https://help.github.com/articles/generating-an-ssh-key/
  2. 更新 npm:npm install -g npm.
  3. 安装 gulp:npm install -g gulp.
  4. 安装Python.
  5. 这样做:npm ls graceful-fs.
  6. 有了 Windows 10,问题就少了。