问题:vue工程执行npm install的时候报上图所示错误,
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: remote error:
npm ERR! The unauthenticated git protocol on port 9418 is no longer supported.
npm ERR! Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
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\Administrator\AppData\Roaming\npm-cache\_logs\2022-04-07T03_01_03_338Z-debug.log
解决方法:
1)搜索处文件gitconfig
2)将如下配置添加到文件里面:
[credential]
helper = manager
[url "https://"]
insteadOf = ssh://
[url "https://"]
insteadOf = git://
如下图所示: