问题

npm install 时报错npm ERR! Host key verification failed.

npm ERR! Error while executing:
npm ERR! C:\Program Files\Git\cmd\git.EXE ls-remote -h -t ssh://git@github.com/sohee-lee7/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! 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.

解决方法

将github的ssh链接改为https链接,运行以下命令

# 运行命令
git config --global url."https://github.com/".insteadOf "ssh://git@github.com/"

再运行“npm install”,如果报类似下面的错误:

# 错误信息
npm ERR! code 128
npm ERR! Command failed: git clone --depth=1 -q -b 2.2.0-c https://github.com/nhn/raphael.git ******* --config core.longpaths=true
npm ERR! warning: templates not found in C:\Users\****\AppData\Local\Temp\pacote-git-template-tmp\git-clone-75bbee44
npm ERR! error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054
npm ERR! fatal: error reading section header 'shallow-info'
npm ERR!

则运行以下命令

# 运行命令
git config -global http.sslVerify "false"

还有其它问题,可能是由于github链接国内访问不稳定,解决方法懂的都懂。

npm 报错ERR Host key verification failed.相关推荐

  1. sshpass报错Host key verification failed

    通过sshpass命令执行从本地A服务器复制数据库文件到B服务器上. # sshpass -p 'a@123456' scp -P 22 /home/data.sql.gz root@10.0.0.2 ...

  2. Git服务器报错:host key for (ip地址) has changed and you have requested strict checking

    一:报错提示 如下: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @    WARNING: REMOTE HOST IDE ...

  3. 使用scp传输文件 Host key verification failed.解决

    在用scp传输文件时,看到如下报错信息: ysgz@ysgz:~/Desktop$ scp check.sh ysgz@192.168.3.6:/tools @@@@@@@@@@@@@@@@@@@@@ ...

  4. ubuntu ssh Host key verification failed,Host 10.xxx.xxx.xxx not found in /home/user/.ssh/known_hosts

    $ sudo apt-get install sshpass $ sudo bash scp_models_toxxx.sh 用ssh脚本传文件时报错 报错截取: ECDSA host key for ...

  5. Host key verification failed.

    第一次玩阿里云服务器,一开始自己玩了半天,玩的乱七八糟,然后打算重置一下好好玩. 结果重置之后连接不上了,还报了下面这个错误: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ...

  6. linux ssh连接 出现 Host key verification failed 错误 解决方法

    错误现象: [root@cache001 swftools-0.9.0]# ssh 192.168.1.90 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ...

  7. SSH连接时出现Host key verification failed的原因及解决方法

    SSH连接时出现Host key verification failed的原因及解决方法 参考文章: (1)SSH连接时出现Host key verification failed的原因及解决方法 ( ...

  8. 解决Host key verification failed.

    ssh-keygen -R 你要访问的IP地址 例如 ssh-keygen -R 47.100.251.70 起因: ✘ liwei@MacBook-Pro  ~  ssh root@47.100 ...

  9. ssh 远程服务器 Host key verification failed.【known_hosts】

    (阅读时间30S) 这一类问题,一般都是你的known_hosts保存了网络身份验证证书,更换了环境去访问,就会被服务器拒绝. 按照错误提示的/c/Users/HASEE/.ssh/known_hos ...

最新文章

  1. Ajax接收Java异常_java – 处理来自Servlet的Jquery AJAX响应中的异常
  2. 计算机公共课考试试题,2019-度公共课计算机应用基础考试试题附答案.doc
  3. 惊艳!亚洲规模最大、标准最高的金融数据中心 |上证所金桥技术中心基地项目...
  4. ITK:颜色归一化相关
  5. MEF: MSDN 杂志上的文章(15) 拒绝【多个导出,但只用一个导入,会拒绝,但还是稳定的组合】...
  6. python图像几何变换_Python 图像处理 OpenCV (5):图像的几何变换
  7. Mozilla 修复已遭利用的两个火狐浏览器 0day
  8. 《剑指offer》面试题18——树的子结构(C++)
  9. 【热聘】蚂蚁金服-系统软件和安全资深/高级/专家/工程师
  10. 汇编语言王爽第四版(Debug与实验一)
  11. 简单易懂的贝叶斯公式
  12. 圈粉无数!被称为B站“新垣结衣”的UP主,如何收获Z世代年轻人的喜爱?
  13. hdu_5145_NPY and girls(莫队算法+组合)
  14. 从’物质决定意识’说起
  15. 深度学习笔记(一)了解深度学习
  16. 云原生入门 第五章:kubernetes学习实践
  17. Blender 物理属性 (二)布料和碰撞
  18. browser html page iconic show error : 瀏覽器html頁面小圖標按鈕出現錯誤
  19. [附源码]Java计算机毕业设计SSM电子工厂进销存管理系统
  20. Linux下配置本地yum源(Centos、Debain和SUSE)

热门文章

  1. 光进铜退再掀热潮 布线须冷思考
  2. zk数据迁移删除过多zk node
  3. 文心日签 | 一泓泉色,锦鲤入怀
  4. [外国人名] 伊丽莎白 / 伊莎贝拉
  5. linux系统修改ip地址方法
  6. Alibaba之Nacos
  7. 主流日志框架使用及性能对比
  8. 苹果6plus网络显示无服务器,苹果iPhone6s/6s Plus现身网络,iPhone6c去向存疑
  9. TP-LINK路由器怎么设置?看看这个教程你就知道了
  10. 跨域目标检测任务数据集