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