ethereumjs / ethereumjs-abi

[DEPRECATED] Decoder and encoder for the Ethereum ABI
MIT License
302 stars 161 forks source link

Error can not install #67

Open zeroXBami opened 5 years ago

zeroXBami commented 5 years ago

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.

0xabz commented 1 year ago

Yes @arshamg. Delete your package-lock.json and yarn.lock files then simply add the below to your package.json. This will work regardless of npm/yarn.

  "resolutions": {
    "ethereumjs-abi": "https://registry.npmjs.org/ethereumjs-abi/-/ethereumjs-abi-0.6.8.tgz"
  },

nice!!!!!!!! fix this problem!!! thank you!!!

arsqu commented 1 year ago

I solved this issue for following. Remove "resolved": "git+ssh://git@github.com/ethereumjs/ethereumjs-abi.git#ee3994657fa7a427238e6ba92a84d0b529bbcde0" from my yarn.lock and re-run yean install, then yarn.lock was updated to git+https url.

It's works for me, but I don't know if this is right way.

thanks, it works for me

terryjiang2020 commented 10 months ago

I have this same problem when I was trying to build my project via AWS Ampify. It is serverless so I guess there's no way for me to add my ssh key there. (The repo I used is a private repo of mine, though.) Does anyone have the solution for a serverless service like that?

blazejkrzak commented 9 months ago

I had this problem when I logged to the server via SSH. I forgot to forward my agent via -A flag.

ssh -A $user:$host I leave it here, probably for myself in the future and maybe for the others that encounter this issue