• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

npm ERR! code 128npm ERR! An unknown git error occurrednpm ERR! command git --no-replace-objects l

武飞扬头像
郭宝
帮助1

背景:

在安装vue-element-admin 项目所需依赖时,出现了如下报错信息

  1.  
    npm ERR! code 128
  2.  
    npm ERR! An unknown git error occurred
  3.  
    npm ERR! command git --no-replace-objects ls-remote ssh://git@github.com/adobe-webplatform/eve.git
  4.  
    npm ERR! git@github.com: Permission denied (publickey).
  5.  
    npm ERR! fatal: Could not read from remote repository.
  6.  
    npm ERR!
  7.  
    npm ERR! Please make sure you have the correct access rights
  8.  
    npm ERR! and the repository exists.
  9.  
     
  10.  
    npm ERR! A complete log of this run can be found in:
  11.  
    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

效果图:

学新通

学新通 

 学新通

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /boutique/detail/tanhehjafh
系列文章
更多 icon
同类精品
更多 icon
继续加载