npm install 遇到 git.exe ls-remote -h -t git://github.com/adobe-webplatform/eve.git 报错问题
ls-remote -h -t git://github.com/adobe-webplatform/eve.git 报错问题

ls-remote -h -t git://github.com/adobe-webplatform/eve.git 报错问题


npm ERR! Error while executing:

npm ERR! D:\开发工具\git\Git\cmd\git.EXE ls-remote -h -t git://github.com/adobe-webplatform/eve.git

npm ERR!

npm ERR! fatal: unable to look up github.com (port 9418) (Ӧ�ó���û�е��� WSAStartup������ WSAStartup ʧ�ܡ� )

npm ERR!

npm ERR! exited with error code: 128

npm ERR! A complete log of this run can be found in:

npm ERR! D:\nodejs\node_cache\_logs\2020-05-20T13_32_07_467Z-debug.log

 

 

解决方案

cd 项目根目录

git config --global url."https://".insteadOf git://

# 此方法修改项目的配置文件



如果您需要更详细的了解,请用微信扫描下面的二维码添加客服的微信,我们将详细为您解答,谢谢!