npm install error code128

Error content

npm ERR! Error while executing:
npm ERR! C:\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: 140.82.114.3]: errno=Unknown error
npm ERR!
npm ERR!
npm ERR! exited with error code: 128

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

Cause analysis:
Baidu has found many reasons, most of which are two possibilities: ①No ssl certificate ②Git download is not supported. I am here for the second reason.

Solution:
② Replace git:// with https://

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

Guess you like

Origin blog.csdn.net/qq_37291367/article/details/121231244