npm ERR! code 128npm ERR! An unknown git error occurrednpm ERR! command git --no-replace-objects l
背景:
在安装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
效果图:
npm ERR! code 128npm ERR! An unknown git error occurrednpm ERR! command git --no-replace-objects l相关推荐
- ERROR: Cannot find command ‘git‘ - do you have ‘git‘ installed and in your PATH
虚拟环境中,在配置coco数据集的API时出现以下错误 (py37) C:\Users\HASEE>pip install git+https://github.com/philferriere ...
- ERROR: Cannot find command ‘git‘ - do you have ‘git‘ installed and in your PATH?
问题描述: 使用git命令时: ERROR: Error [WinError 2] 系统找不到指定的文件. while executing command git clone -q https://g ...
- 已解决ERROR: Cannot find command ‘git’- do you have ‘git’ installed and in your PATH?
已解决ERROR: Cannot find command 'git'- do you have 'git' installed and in your PATH?异常的正确解决方法,亲测有效!!! ...
- 成功解决:ERROR: Cannot find command ‘git‘ - do you have ‘git‘ installed and in your PATH?
https://blog.csdn.net/qq_42075890/article/details/114013671
- Cannot find command ‘git‘ - do you have ‘git‘ installed and in your PATH?
命令提示符下安装"git": D:\PycharmProjects\pythonProject\venv\Scripts>pip install -q git+https:/ ...
- npm i报错 npm ERR! path git npm ERR! code ENOENT npm,后续npm i继续报错gyp ERR! node -v v12.13.1
1,新搭建的环境,node版本,npm版本,Vue-cli版本,webpack版本都应该是最新的,具体版本号如下: 2,之后npm i就报错如下: npm ERR! path git npm ERR! ...
- command git --no-replace-objects ls-remote ssh://git@github.com/nhn/raphael.git npm ERR
目录 1.案发现场 2 故障分析 3 解决方案 4. 参考文献 1.案发现场 当执行npm install 安装的时候可能会出现如下报错信息: npm ERR! code 128 npm ERR! A ...
- npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.com/@mlamp%2fuser-info-dropdo
npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.com/@mlamp%2fuser-info-dropdo ...
- npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.com/address-pares - Not found
npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.com/address-pares - Not found ...
最新文章
- 孩子,来生我们一起走
- 相对布局(RelativeLayout)的控件运用
- __declspec(selectany)的作用
- [ASP.NET Core 3框架揭秘] 文件系统[1]:抽象的“文件系统”
- 【C++grammar】断言与表达式常量
- 关于location.href几种用法的区别
- goland 修改.gitignore无效问题
- 天津理工大学计算机调剂信息,天津理工大学2020考研调剂信息
- redhat 7 oracle 11,redhat7 搭建oracle 11g RAC 问题与处理
- mysql dml回滚_mysql binlog回滚/闪回,前滚, 分析各表DML情况, 找出长事务与大事务...
- 开源的读取Excel文件组件-ExcelDataReader
- 【mqtt】client测试工具使用
- [JAVA]EXCEL工具推荐-MyExcel
- 软件压力测试的手段有注入错误吗,软件错误注入测试技术研究_陈锦富.pdf
- iOS初级开发学习笔记:微信充值
- ChatGPT AI绘图Siri快捷指令,根据描述生成图片
- cocos2dx 常用的基本功能
- 易经之潜龙见龙惕龙 No.206
- XT800官方原版2.2.1测试版ROM
- HTML5移动游戏开发高级编程 2:从玩具到游戏
热门文章
- mac java 配置
- (重点)“Grid“网格布局
- Java+Swing+mysql5实现超市商品管理系统
- 白醋泡大蒜,治疗灰指甲。以下为详细操作,供需要的人参考
- 基础运维-杂乱篇-持续更新.......
- 第4章 深度估计与分割(SGBM、GrabCut、分水岭) 个人笔记
- iview(View UI)使用 Vue 的 Render 函数,自定义表格列头显示内容(renderHeader)
- 土地利用覆被变化的概念_土地利用土地覆被变化研究概述
- AVPlayer视频播放
- R语言利用igraph和networkD3包快速入门做出炫酷的社交网络图等几类图。