当前位置:   article > 正文

关于安装依赖时报错 code128的问题_error command failed. exit code: 128 command: git

error command failed. exit code: 128 command: git arguments: fetch --tags

今天在维护一个公司老项目时,拉取代码之后安装依赖报的code128原因

//在这使用了很多方法
	1.使用yarn
		npm install -g yarn
		yarn install
	2.使用淘宝镜像
		npm install --registry=https://registry.npm.taobao.org
	3.使用不知名方法
	    git config --global http.sslverify "false"
	4.添加gitlub上面的sshkey
		桌面右键,git bash here 输入以下 ssh-keygen -t rsa -C “你的邮箱名称” 
		在overwrite输入y 
		输入密码的时候直接回车 重复密码输入还是直接回车,然后把github上以前的sshkeys删除,c盘->用户->你的用户名->.ssh->id_rsa.pub里边的字符添加到
github右上角头像->settings->ssh->Add sshKeys
	5.将git与http互换
	git config --global url."git://".insteadOf https://
	git config --global url."https://".insteadOf git://
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16

直到现在还没解决 有大佬出出主意么

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/不正经/article/detail/456693
推荐阅读
相关标签
  

闽ICP备14008679号