首页 > 技术文章 > ls-remote -h -t git://github.com/adobe-webplatform/eve.git 报错问题

cat520 2020-05-20 21:36 原文

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://

推荐阅读