我正在使用Material UI和React,虽然在我的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以下是依赖关系:
"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"
},知道为什么会这样吗?
发布于 2021-10-11 06:37:43
这可能是由于需要在ssh模式下下载的ethereumjs-abi依赖,在这种模式下,使用https克隆存储库。
作为修复,添加github身份与ssh-add解决了这个问题。
ssh-add -K <path to private key>
$ ssh-add -K ~/.ssh/github
Identity added: /Users/abc/.ssh/github https://stackoverflow.com/questions/68374802
复制相似问题