ethereumjs-abi icon indicating copy to clipboard operation
ethereumjs-abi copied to clipboard

Error can not install

Open zeroXBami opened this issue 7 years ago • 54 comments

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.

zeroXBami avatar Aug 31 '18 16:08 zeroXBami

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.

holgerd77 avatar Sep 21 '18 11:09 holgerd77

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.

bloodybit avatar Aug 27 '20 13:08 bloodybit

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

Resoguy avatar Mar 26 '21 17:03 Resoguy

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 the same error on Mac and Ubuntu. Have you solved this issue @Resoguy

Andrea-Dispe avatar Jul 14 '21 08:07 Andrea-Dispe

I think you can solve it this way: https://github.com/ethereumjs/ethereumjs-abi/issues/67#issuecomment-681944008

bloodybit avatar Jul 14 '21 09:07 bloodybit

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.

Andrea-Dispe avatar Jul 15 '21 01:07 Andrea-Dispe

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.

RadioJulius avatar Jul 21 '21 06:07 RadioJulius

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 !

knzeng-e avatar Sep 27 '21 15:09 knzeng-e

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?

preconfxsd avatar Oct 14 '21 14:10 preconfxsd

Same problem using Vercel Deployment

creazy231 avatar Oct 25 '21 10:10 creazy231

I face this issue now.

vseehausen avatar Nov 28 '21 17:11 vseehausen

@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?

holgerd77 avatar Nov 29 '21 09:11 holgerd77

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.

holgerd77 avatar Nov 29 '21 09:11 holgerd77

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.

djmbritt avatar Nov 29 '21 13:11 djmbritt

Just to confirm: are there more people here where this problem is coming from the WalletConnect library?

holgerd77 avatar Nov 29 '21 14:11 holgerd77

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!

vseehausen avatar Nov 29 '21 21:11 vseehausen

@holgerd77

  • it is happened for me on Node v14.17.3
  • Installed via another dependency
  • Using npm

image

└─┬ @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

Kamikozz avatar Jan 19 '22 13:01 Kamikozz

In my case, the problem comes from the @web3-onboard/walletlink package.

nbeuchat avatar Mar 17 '22 22:03 nbeuchat

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

ayudh37 avatar Mar 24 '22 03:03 ayudh37

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

mdarche avatar Apr 19 '22 17:04 mdarche

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.

georgeperry1 avatar May 09 '22 08:05 georgeperry1

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?

akorede12 avatar May 17 '22 16:05 akorede12

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!

Hazelwu2 avatar Jun 13 '22 16:06 Hazelwu2

Having this issue using npm ci via Cyclic.sh

rstellar avatar Jun 27 '22 21:06 rstellar

"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"
      }
      ```

zubin-madon avatar Jul 02 '22 10:07 zubin-madon

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! Erro (2)

WanderKey avatar Jul 11 '22 01:07 WanderKey

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"
  }

illepic avatar Aug 01 '22 16:08 illepic

same issue on Digital ocean.

selmi-karim avatar Aug 19 '22 11:08 selmi-karim

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

lucasuema avatar Sep 15 '22 16:09 lucasuema

Had the issue using vercel.

Removed yarn.lock, package-lock.json and used yarn. Dependencies fetching is now working.

0xnogo avatar Sep 17 '22 12:09 0xnogo