问题
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