npm ERR! Command failed: git clone

错误描述:
npm ERR! code 128
npm ERR! Command failed: git clone --mirror -q git://github.com/adobe-webplatform/eve.git C:\Users\wangzhe\AppData\Roaming\npm-cache_cacache\tmp\git-clone-7f2a59c2.git --config core.longpaths=true
npm ERR! warning: templates not found in C:\Users\wangzhe\AppData\Local\Temp\pacote-git-template-tmp\git-clone-13eaa90b
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\wangzhe\AppData\Roaming\npm-cache_logs\2021-06-15T13_41_34_594Z-debug.log

解决方案:

  1. 进入项目所在目录
  2. git config --global url."https://".insteadOf git://
  3. npm install

posted @ 2021-06-15 21:57  王哲66369  阅读(5909)  评论(0编辑  收藏  举报