美文网首页
Intellij IDEA 使用vue-element-admi

Intellij IDEA 使用vue-element-admi

作者: Buckler | 来源:发表于2020-01-13 14:53 被阅读0次

错误信息:

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 ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\abc\AppData\Roaming\npm-cache\_logs\2020-01-13T06_44_20_125Z-debug.log

解决方法执行:

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

报错原因:

因为当你想去克隆一个别人github上的repository时,发现系统不让你动,提示你防火墙禁止对git://的访问,这时候就只能用https://来访问repository。

执行 git config --global url."https://".insteadOf git:// 后,你会发现在你的文件 .gitconfig中会多出一行

 [url "https://"]   
        insteadOf = git://

这个时候,你就可以以后不管你在终端进行clone,使用git://,或者http://去访问别人的repository,两种方式都会默认变成http://的形式进行连接并正常的工作了。

相关文章

网友评论

      本文标题:Intellij IDEA 使用vue-element-admi

      本文链接:https://www.haomeiwen.com/subject/byagactx.html