赞
踩
在安装vue-element-admin 项目所需依赖时,出现了如下报错信息
- npm ERR! code 128
- npm ERR! An unknown git error occurred
- npm ERR! command git --no-replace-objects ls-remote ssh://git@github.com/adobe-webplatform/eve.git
- npm ERR! git@github.com: 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! D:\Develo\nodejs\node_cache\_logs\2022-02-23T03_34_18_949Z-debug-0.log
1、使用下面的命令,达到,把地址里的 ssh://git@
换成 https://
的目的
git config --global url."https://".insteadOf ssh://git@
2、然后重新通过 npm install 安装项目依赖
npm install
效果图:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。