#开发环境篇:vue-element-admin依赖128问题

问题

npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
npm ERR! Error while executing:
npm ERR! C:\Program Files\Git\mingw64\bin\git.EXE ls-remote -h -t 
https://github.com/nhn/raphael.git
npm ERR!
npm ERR! fatal: unable to access 'https://github.com/nhn/raphael.git/': OpenSSL SSL_read: Connection was aborted, errno 10053       
npm ERR!
npm ERR! exited with error code: 128

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\BEYONDSOFT-83\AppData\Roaming\npm-cache\_logs\2022-12-08T06_25_35_922Z-debug.log

(vue-element-admin) .git 里面源config配置 如下

[core]
	repositoryformatversion = 0
	filemode = false
	bare = false
	logallrefupdates = true
	symlinks = false
	ignorecase = true
[remote "origin"]
	url = git@github.com:PanJiaChen/vue-element-admin.git
	fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
	remote = origin
	merge = refs/heads/master

需要加上

[url "https://"]
	insteadOf =ssh://git@
[http]
	sslVerify = false
[url "https://github.com/nhn/raphael.git/"]
	insteadOf=git:/github.com/nhn/raphael.git/

加上之后

[core]
	repositoryformatversion = 0
	filemode = false
	bare = false
	logallrefupdates = true
	symlinks = false
	ignorecase = true
[remote "origin"]
	url = git@github.com:PanJiaChen/vue-element-admin.git
	fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
	remote = origin
	merge = refs/heads/master
[url "https://"]
	insteadOf =ssh://git@
[http]
	sslVerify = false
[url "https://github.com/nhn/raphael.git/"]
	insteadOf=git:/github.com/nhn/raphael.git/

在这里插入图片描述

解决

电脑本地配置加上

[url "https://"]
	insteadOf = git://
[core]
	compression = -1
	autocrlf = true
[user]
	name = 123
	email = 123@qq.com
[http]
	sslverify = false
	sslBackend = openssl
	sslCAInfo = C:\\Program Files\\Git\\mingw64\\ssl\\cert.pem
[difftool "sourcetree"]
	cmd = '' \"$LOCAL\" \"$REMOTE\"
[mergetool "sourcetree"]
	cmd = "'' "
	trustExitCode = true
[filter "lfs"]
	required = true
	clean = git-lfs clean -- %f
	smudge = git-lfs smudge -- %f
	process = git-lfs filter-process
[url "https://"]
	insteadOf = git://

实在不行 去拉去一下node_modules包试试

https://github.com/xiaoli-bao/vue-element-admin-master-node_modules

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值