ethereumjs-abi
ethereumjs-abi copied to clipboard
Error can not install
Hi,
I am trying to install ethereumjs-abi but always got this issues: npm ERR! code 1 npm ERR! Command failed: /usr/local/bin/git clone -q https://github.com/ethereumjs/ethereumjs-abi.git /Users/trnhgquan/.npm/_cacache/tmp/git-clone-e6ae2501 npm ERR! /Users/trnhgquan/.npm/_cacache/tmp/git-clone-e6ae2501/.git: Permission denied npm ERR!
npm ERR! A complete log of this run can be found in: npm ERR! /Users/trnhgquan/.npm/_logs/2018-08-31T16_15_05_558Z-debug.log
Does anyone here can help me to fix?
Thanks.
You doesn't seem to have the proper rights to write in your given directory. This is nevertheless no abi library related issue, will close.
I faced the same problem and apparently there is a file that needs to be downloaded from git in "git ssh mode" not via https. Adding my github identity with ssh-add solved my issue. I don't think the pubkey is actually checked, it just needs to be non null.
I am getting this Permission denied error on cypress github action while installing dependencies with the npm ci command
This is where the error occurs
/usr/bin/git ls-remote -h -t ssh://[email protected]/ethereumjs/ethereumjs-abi.git
This error makes the project untestable on github action. Any idea to how solve?
Here is the full log:
/usr/local/bin/npm ci
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://[email protected]/ethereumjs/ethereumjs-abi.git
npm ERR!
npm ERR! Warning: Permanently added the RSA host key for IP address '140.82.113.3' to the list of known hosts.
npm ERR! [email protected]: 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
npm ERR! A complete log of this run can be found in:
npm ERR! /home/runner/.npm/_logs/2021-03-26T17_17_00_879Z-debug.log
Error: The process '/usr/local/bin/npm' failed with exit code 1
I am getting this Permission denied error on cypress github action while installing dependencies with the
npm cicommandThis is where the error occurs
/usr/bin/git ls-remote -h -t ssh://[email protected]/ethereumjs/ethereumjs-abi.gitThis error makes the project untestable on github action. Any idea to how solve?
Here is the full log:
/usr/local/bin/npm ci npm ERR! Error while executing: npm ERR! /usr/bin/git ls-remote -h -t ssh://[email protected]/ethereumjs/ethereumjs-abi.git npm ERR! npm ERR! Warning: Permanently added the RSA host key for IP address '140.82.113.3' to the list of known hosts. npm ERR! [email protected]: 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 npm ERR! A complete log of this run can be found in: npm ERR! /home/runner/.npm/_logs/2021-03-26T17_17_00_879Z-debug.log Error: The process '/usr/local/bin/npm' failed with exit code 1
I am getting the same error on Mac and Ubuntu. Have you solved this issue @Resoguy
I think you can solve it this way: https://github.com/ethereumjs/ethereumjs-abi/issues/67#issuecomment-681944008
I think you can solve it this way: #67 (comment)
Thank you but I was able to solve this by updating npm to the latest version.
I've noticed this occasionally happen when adding a new package with yarn. It will revert from the working:
"resolved": "https://registry.npmjs.org/ethereumjs-abi/-/ethereumjs-abi-0.6.8.tgz"
to the non-working:
"resolved": "git+ssh://[email protected]/ethereumjs/ethereumjs-abi.git#ee3994657fa7a427238e6ba92a84d0b529bbcde0"
Manually switching back fixes this headache for me.
I've noticed this occasionally happen when adding a new package with yarn. It will revert from the working:
"resolved": "https://registry.npmjs.org/ethereumjs-abi/-/ethereumjs-abi-0.6.8.tgz"to the non-working:
"resolved": "git+ssh://[email protected]/ethereumjs/ethereumjs-abi.git#ee3994657fa7a427238e6ba92a84d0b529bbcde0"Manually switching back fixes this headache for me.
+1 this comment resolved my issue. Thanks !
I faced the same problem and apparently there is a file that needs to be downloaded from git in "git ssh mode" not via https. Adding my github identity with ssh-add solved my issue. I don't think the pubkey is actually checked, it just needs to be non null.
Can you tell me how did you add your identity? Should I add it into workflow yaml file?
Same problem using Vercel Deployment
I face this issue now.
@Valentin-Seehausen hi there, I did a test clone + npm i on https://github.com/effectai/force-frontend-new - assuming that that's the repository from where your issue originated - but I couldn't even find the dependency, npm ls ethereumjs-abi is giving me nothing.
Can you give a short context description where the ethereumjs-abi dependency is actually coming from in your context?
And for everyone reading along here: while we have deprecated this package if there is something with reasonable effort we can do here from our side we can very well do a bugfix release here.
It's generally helpful if you provide more context on where are you getting your errors. What Node version are you using? Are you using the ethereumjs-abi dependency directly or is it installed via another dependency? Optimally provide some reproduceable code example (or eventually some CLI command lineup in this context).
Thanks!
Will reopen this issue for now until this is settled in some way.
We also encountered this issue last week, it was a deprecated dependency from WalletConnect. This was still the 1.0 version of WalletConnect. We dropped support for WalletConnect for now.
Just to confirm: are there more people here where this problem is coming from the WalletConnect library?
Yes, it originated from the WalletConnect library. I solved the issue by deleting my yarn.lock and reinstall. Sorry that I cannot help to reproduce it. Super service, thanks a lot!
@holgerd77
- it is happened for me on Node v14.17.3
- Installed via another dependency
- Using
npm

└─┬ @amfi/[email protected]
└─┬ @walletconnect/[email protected]
└─┬ [email protected]
└─┬ [email protected]
└── [email protected] (git+ssh://[email protected]/ethereumjs/ethereumjs-abi.git#ee3994657fa7a427238e6ba92a84d0b529bbcde0)
I have just created new app on heroku, then made a setup via github repository to deploy, and then it showed me these logs
Spoiler warning
-----> Building on the Heroku-20 stack
-----> Using buildpack: mars/create-react-app
-----> React.js (create-react-app) multi app detected
=====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-multi.git
=====> Detected Framework: Multipack
=====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-nodejs.git
=====> Detected Framework: Node.js
-----> Creating runtime environment
NPM_CONFIG_LOGLEVEL=error
NODE_VERBOSE=false
NODE_ENV=production
NODE_MODULES_CACHE=true
-----> Installing binaries
engines.node (package.json): unspecified
engines.npm (package.json): unspecified (use default)
Resolving node version 14.x...
Downloading and installing node 14.18.3...
Using default npm version: 6.14.15
-----> Restoring cache
- node_modules
-----> Installing dependencies
Installing node modules
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://[email protected]/ethereumjs/ethereumjs-abi.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! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.3QAnL/_logs/2022-01-19T07_02_45_160Z-debug.log
-----> Build failed
We're sorry this build is failing! You can troubleshoot common issues here:
https://devcenter.heroku.com/articles/troubleshooting-node-deploys
Some possible problems:
- Node version not specified in package.json
https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
Love,
Heroku
! Push rejected, failed to compile React.js (create-react-app) multi app.
! Push failed
No matter what it says, there is no problem with buildpack, it's just something that is here git ls-remote -h -t ssh://[email protected]/ethereumjs/ethereumjs-abi.git
Anyway, you can try this command locally and it will show you this error.
But, if I run my project locally, everything is working (this could be the GitHub policy about SSH, dunno)
// SOLVED: using yarn instead of npm will give you the pleasure
In my case, the problem comes from the @web3-onboard/walletlink package.
I had this issue as well, using when using @walletconnect/web3-provider and using npm as the package manager.
I deleted package-lock.json and node_modules and used yarn to install the modules. Verified that the resolve url for the dependency ethereumjs-abi begins with https:// instead of git+ssh:// in yarn.lock and everything works now
For anybody struggling with this issue using pnpm, I fixed by adding an override to my root package.json:
"pnpm": {
"overrides": {
"ethereumjs-abi": "https://registry.npmjs.org/ethereumjs-abi/-/ethereumjs-abi-0.6.8.tgz"
}
}
Reference: https://pnpm.io/package_json#pnpmoverrides
I was having this issue specifically when installing and deploying within an AWS Amplify build pipeline. Of the suggested fixes, moving from npm to yarn was the only thing that solved it for me.
Same problem using Vercel Deployment
Yes I'm having this issue now trying to deploy my project on vercel. how do you solve the issue when deploying to vercel?
Same problem using Vercel Deployment
Yes I'm having this issue now trying to deploy my project on vercel. how do you solve the issue when deploying to vercel?
I'm using vercel cicd to deploy my project, has the same problem.
remove package.lock & yarn.lock, and yarn install reinstall again, that's work for me!
Having this issue using npm ci via Cyclic.sh
"resolved": "https://registry.npmjs.org/ethereumjs-abi/-/ethereumjs-abi-0.6.8.tgz"
I am facing this issue while trying to build my app on Netlify. https://app.netlify.com/sites/effortless-cocada-30ceed/deploys/62c019e951f0c30008112b2d
In my packagelock.json I see the following:
"node_modules/ethereumjs-abi": {
"version": "0.6.8",
"resolved": "git+ssh://[email protected]/ethereumjs/ethereumjs-abi.git#ee3994657fa7a427238e6ba92a84d0b529bbcde0",
"license": "MIT",
"dependencies": {
"bn.js": "^4.11.8",
"ethereumjs-util": "^6.0.0"
}
```
I faced this issue while using yarn to get the dependences, I disabled SSL Verification by running:
git config --global http.sslVerify "false"
and it worked!

For yarn users, add this to the root of package.json:
"resolutions": {
"ethereumjs-abi": "https://registry.npmjs.org/ethereumjs-abi/-/ethereumjs-abi-0.6.8.tgz"
}
same issue on Digital ocean.
I've noticed this occasionally happen when adding a new package with yarn. It will revert from the working:
"resolved": "https://registry.npmjs.org/ethereumjs-abi/-/ethereumjs-abi-0.6.8.tgz"to the non-working:
"resolved": "git+ssh://[email protected]/ethereumjs/ethereumjs-abi.git#ee3994657fa7a427238e6ba92a84d0b529bbcde0"Manually switching back fixes this headache for me.
I ❤️ u
Had the issue using vercel.
Removed yarn.lock, package-lock.json and used yarn. Dependencies fetching is now working.