首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何修复:执行ssh://git@github.com/ethereumjs/ethereumjs-abi.git时出错

如何修复:执行ssh://git@github.com/ethereumjs/ethereumjs-abi.git时出错
EN

Stack Overflow用户
提问于 2021-07-14 16:43:46
回答 1查看 113关注 0票数 1

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

代码语言:javascript
复制
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/ethereumjs/ethereumjs-abi.git

以下是依赖关系:

代码语言:javascript
复制
"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"
},

知道为什么会这样吗?

EN

回答 1

Stack Overflow用户

发布于 2021-10-11 06:37:43

这可能是由于需要在ssh模式下下载的ethereumjs-abi依赖,在这种模式下,使用https克隆存储库。

作为修复,添加github身份与ssh-add解决了这个问题。

ssh-add -K <path to private key>

代码语言:javascript
复制
$ ssh-add -K ~/.ssh/github
Identity added: /Users/abc/.ssh/github 
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68374802

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档