栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

npm ERR! code 128 npm ERR! Command failed: git clone --mirror -q git://github.com/adobe-webplatform/

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

npm ERR! code 128 npm ERR! Command failed: git clone --mirror -q git://github.com/adobe-webplatform/

拉取VUE项目后,下载以来报错问题

错误描述:
npm ERR! code 128
npm ERR! Command failed: git clone --mirror -q git://github.com/adobe-webplatform/eve.git C:UserswangzheAppDataRoamingnpm-cache_cacachetmpgit-clone-7f2a59c2.git --config core.longpaths=true
npm ERR! warning: templates not found in C:UserswangzheAppDataLocalTemppacote-git-template-tmpgit-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:UserswangzheAppDataRoamingnpm-cache_logs2021-06-15T13_41_34_594Z-debug.log

在网上搜到的大部分文章说是因为GitHub访问有一些问题,因为我的项目有些依赖需要到Git上获取,所以报出来这个问题,大部分的解决原因是:

  1. git config --global url.“https://”.insteadOf git://
  2. npm install

但是我在试了N次之后仍然报这个错误,所以就搞了一些其他自己都看不懂的操作:

  1. npm install -g yarn 全局安装yarn
  2. 去C:Usersqw删除.yarnrc和.npmrc
  3. 删除项目文件夹里的node_module3
  4. yarn

通过yarn下载之后你会发现错误还在,这是我们继续执行git config --global url.“https://”.insteadOf git://和npm install即可

PS:我不是一个前端开发,只是一个积极想着全栈努力的java菜鸟,有不妥的地方欢迎大神帮忙指正一下

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/331649.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号