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

npm install 下载依赖报错 code128

武飞扬头像
月亮的梦.
帮助1

日常开发问题记录QAQ…

问题描述:

npm install 安装依赖报错 npm ERR! exited with error code: 128
以下是报错信息,多种情况

npm ERR! Error while executing:
npm ERR! D:\Program Files\Git\cmd\git.EXE ls-remote -h -t ssh://git@github.com/SEO((Search Engine Optimization))nim-ryu/Squire.git
npm ERR!
npm ERR! Host key verification failed.
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!
npm ERR! exited with error code: 128
npm ERR! Error while executing:
npm ERR! D:\Program Files\Git\cmd\git.EXE ls-remote -h -t ssh://git@github.com/SEO((Search Engine Optimization))nim-ryu/Squire.git
npm ERR!
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!
npm ERR! exited with error code: 128

学新通

解决方法:

通过git工具GitGuiHere来自动添加仓库的known_hosts配置,具体步骤如下:
在已下载好的代码仓库,右键“Git Gui here”。
点击Git Gui工具栏“Remote”,点击“Fetch from > origin”。
弹出的对话框中输入“yes”,点击“ok”确定操作。

网上查到的一种解决方案,在此记录一下,问题出现原因和解决问题方案可能因人而异。

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

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