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 进行下载就可以了;
【推荐】还在用 ECharts 开发大屏?试试这款永久免费的开源 BI 工具!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步