在使用npm install安装前端项目依赖时报错:
Error while executing:
npm ERR! D:\soft\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: 20.205.243.166]: errno=Unknown error
npm ERR!
npm ERR!
npm ERR! exited with error code: 128
此时我们需要设置git环境
git config --global url."https://".insteadOf git://
然后重新运行 npm install就行或者npm install --registry=https://registry.npm.taobao.org使用淘宝镜像