如何修复:执行ssh://git@github.com/ethereumjs/ethereumjs-abi.git时出错 [英] How to fix: Error while executing ssh://git@github.com/ethereumjs/ethereumjs-abi.git

查看:16
本文介绍了如何修复:执行ssh://git@github.com/ethereumjs/ethereumjs-abi.git时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Material UI和Reaction,虽然在我的Windows和Ubuntu上应用程序运行正常,但在我的同事Mac和Ubuntu上,编译器给出了这个错误:

npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/ethereumjs/ethereumjs-abi.git

我认为它唯一与之相关的依赖项是etherumjs,我删除了它,因为实际上它并不需要,但问题仍然存在。 以下是依赖项:

"dependencies": {
    "@emotion/react": "^11.4.0",
    "@emotion/styled": "^11.3.0",
    "@ethersproject/providers": "^5.4.1",
    "@material-ui/core": "^5.0.0-beta.0",
    "@material-ui/icons": "^5.0.0-beta.0",
    "@material-ui/styled-engine-sc": "^5.0.0-beta.0",
    "@material-ui/styles": "^4.11.4",
    "@testing-library/jest-dom": "^5.12.0",
    "@testing-library/react": "^11.2.7",
    "@testing-library/user-event": "^12.8.3",
    "@walletconnect/web3-provider": "^1.4.1",
    "@web3-react/core": "^6.1.9",
    "@web3-react/injected-connector": "^6.0.7",
    "flag-icon-css": "^3.5.0",
    "i18next": "^20.3.1",
    "i18next-browser-languagedetector": "^6.1.1",
    "i18next-http-backend": "^1.2.6",
    "react": "^17.0.2",
    "react-dom": "^17.0.2",
    "react-i18next": "^11.10.0",
    "react-router-dom": "^5.2.0",
    "react-scripts": "4.0.3",
    "react-stepper-horizontal": "^1.0.11",
    "styled-components": "^5.3.0",
    "web-vitals": "^1.1.2",
    "web3": "^1.3.6"
},

知道为什么会发生这种情况吗?

推荐答案

这可能是因为ethereumjs-abi依赖项需要在使用HTTPS克隆Repo的ssh模式下下载。

作为修复方法,使用ssh-add添加GitHub标识可解决此问题。

ssh-add -K <path to private key>

$ ssh-add -K ~/.ssh/github
Identity added: /Users/abc/.ssh/github 

这篇关于如何修复:执行ssh://git@github.com/ethereumjs/ethereumjs-abi.git时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆