vue-element-admin npm install时,出现以下错误
解决办法:
#注意:
#查看一下自己的代码仓库是http还是https,处理方式不一样,
我的是https,所以是设置的git config --#global https.sslVerify "false",
若你的是http,则是设置git config --global http.sslVerify #"false"。
git http.postBuffer的大小也是如此。
#方案一
#修改git http.postBuffer的大小
git config --global https.postBuffer 524288000
#ssl验证
git config --global https.sslVerify "false"
#ssh访问切换为https访问
git config --global url."https://" .insteadOf git://
#方案二
#打开并编辑git配置文件
git config --edit --global
#配置文件内容
[url "https://"]
insteadOf = git://
[https]
postBuffer = 524288000
sslVerify = false