npm insatll 失败

 

错误如下

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上输入   

git config --global http.sslverify "false"    再执行npm install 进行下载就可以了;

 

方法二

git config --global url."https://".insteadOf git://  再执行npm install 进行下载就可以了;

 

posted @ 2020-06-23 10:19  javascript9527  阅读(988)  评论(0编辑  收藏  举报