PanJiaChen / vue-element-admin

:tada: A magical vue admin https://panjiachen.github.io/vue-element-admin
MIT License
87.55k stars 30.43k forks source link

fatal: unable to connect to github.com 解决方法 #4000

Open 124135417 opened 2 years ago

124135417 commented 2 years ago

如果遇到 npm ERR! Error while executing: npm ERR! D:\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 的话可以尝试一下把 ”git://“ 换成“https://” 终端:git config --global url."https://".insteadOf git://

greedying commented 2 years ago

试了,没用,wtf

tnusraddinov commented 2 years ago

this worked for me https://github.com/PanJiaChen/vue-element-admin/issues/3945

biaggii commented 2 years ago

多謝大大, 可以了

isekiro commented 2 years ago

如果遇到 npm ERR! Error while executing: npm ERR! D:\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 的话可以尝试一下把 ”git://“ 换成“https://” 终端:git config --global url."https://".insteadOf git://

完整命令是: git config --global url."https://github.com/adobe-webplatform/eve.git".insteadOf ssh://git@github.com/adobe-webplatform/eve.git 这样之后就可以了。