当前位置: 首页 > ds >正文

npm install报错

npm install报错

  • 完整报错
  • 解决

完整报错

npm ERR! code 128
npm ERR! An unknown git error occurred
npm ERR! command git --no-replace-objects ls-remote ssh://git@github.com/nhn/raphael.git
npm ERR! Warning: Permanently added 'github.com' (ED25519) to the list of known hosts.
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.

解决

报错说明:SSH 协议访问 GitHub 仓库时,身份验证失败

  1. 以ssh://git@开头的远程仓库 URL 自动替换成以https://开头的 URL
git config --global url."https://".insteadOf ssh://git@
# 重新安装
npm install
# 网速过慢(可选)
npm install --registry=https://registry.npm.taobao.org

我遇到的进需要上述操作,更换为http即可解决。
如不行,得自己再找找原因,欢迎评论区留下解决方式。

http://www.xdnf.cn/news/14512.html

相关文章:

  • Hudi 与 Hive 集成
  • https说明
  • RV1126+OPENCV对视频流单独进行视频膨胀/腐蚀操作
  • Spring AI 项目实战(八):Spring Boot + AI + DeepSeek 打造企业级智能文档分类系统
  • 40套精品大气黑金系列行业PPT模版分享
  • Web后端基础:数据库
  • 【JavaScript-Day 42】深入解析事件冒泡与捕获:掌握事件委托的精髓
  • 2、Java流程控制:编程界的“逻辑游乐场”
  • Leetcode 刷题记录 12 —— 二叉树第三弹
  • 六月十五号Leetcode
  • Apache Iceberg与Hive集成:非分区表篇
  • 【Redis】分布式锁
  • 我的项目管理之路-PMO
  • OpenSpeedy:让游戏体验“飞”起来的秘密武器
  • 基于CNN深度学习的小程序识别-视频介绍下自取
  • Android 修改了页面的xml布局,使用了databinding,这时候编译时需要用到apt吗
  • Node.js 中两种模块导出方式区别
  • Vue 组合式 API 与 选项式 API 全面对比教程
  • 期权入门介绍
  • PCB设计教程【大师篇】stm32开发板PCB布线(信号部分)
  • 附录:对于头结点单向链表的优化方法
  • AlibabaCloud+SpringCloud简述
  • 人工智能学习25-BP代价函数
  • RHCE 练习四:编写脚本实现以下功能
  • 10N65-ASEMI电机驱动方面专用10N65
  • 34.树形 DP
  • 【C语言】计算机组成、计算机语言介绍
  • 【Steel Code】8.6~8.7:TENSION MEMBERS, COMPRESSION MEMBERS
  • CountDownLatch入门代码解析
  • DeepSeek介绍