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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM