运行饿了么Element ui -admin出现问题

错误产生环境

运行 elementui-admin 项目时产生

错误描述

npm ERR! code 128
npm ERR! An unknown git error occurred
npm ERR! command git --no-replace-objects ls-remote ssh://[email protected]/nhn/raphael.git  
npm ERR! [email protected]: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\tx\AppData\Local\npm-cache\_logs\2022-02-26T12_35_06_067Z-debug.log

在这里插入图片描述

错误原因

不懂

解决办法

打开黑窗口运行以下代码

git config --global http.sslverify "false"

第一条命令执行每用的话换第二条命令

git config --global url."https://".insteadOf git://

运行后 重新 npm install

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_42025798/article/details/123155561