错误信息
$ bower install jquery
...
npm ERR! Error while executing:
npm ERR! D:\Program Files\git\cmd\git.exe ls-remote -h -t
git://github.com/adobe-webplatform/eve.git
npm ERR!
npm ERR! fatal: unable to connect to github.com:
npm ERR! github.com[0:13.250.177.223]: errno=No such file or directory
npm ERR!
npm ERR!
npm ERR! exited with error code: 128
npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
npm ERR! Error while executing:
npm ERR! /bin/git ls-remote -h -t git://github.com/adobe-webplatform/eve.git
npm ERR!
npm ERR! fatal: unable to connect to github.com:
npm ERR! github.com[0: 52.74.223.119]: errno=Connection refused
npm ERR!
npm ERR!
npm ERR! exited with error code: 128
解决方法
原因:需要用https才能读到数据
解决方法:
git config --global url.https://.insteadof=git://