github上拉去代码执行 npm install报错code:128

npm ERR! code 128
npm ERR! Command failed: D:\Program Files\Git\cmd\git.EXE clone --mirror -q git://github.com/adobe-webplatform/eve.git C:\Users\yantx\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-8a6c5246\.git --config core.longpaths=true
npm ERR! warning: templates not found C:\Users\yantx\AppData\Local\Temp\pacote-git-template-tmp\git-clone-c2479bd8
npm ERR! fatal: read error: Invalid argument
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\yantx\AppData\Roaming\npm-cache\_logs\2019-10-17T07_24_32_665Z-debug.log

处理方法:

执行 

git config --global http.sslverify "false"

再执行npm install 进行下载就可以了;

posted @ 2019-10-17 15:45  yantx  阅读(6386)  评论(0编辑  收藏  举报