question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] NPM installation error: code ENOLOCAL (abi-decoder version)

See original GitHub issue

Problem Overview

Our build is failing because of:

npm ERR! code ENOLOCAL
npm ERR! Could not install from "node_modules/eth-gas-reporter/node_modules/abi-decoder/node_modules/web3/bignumber.js@git+https:/github.com/debris/bignumber.js.git#94d7146671b9719e00a09c29b01a691bc85048c2" as it does not contain a package.json file.
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/travis/.npm/_logs/2019-06-24T18_32_33_404Z-debug.log

The error claims to be a missing package.json in https:/github.com/debris/bignumber.js.git#94d7146671b9719e00a09c29b01a691bc85048c2 but this is not true.

Proposed Problem Source

It appears to be the commit 16bd5d7 with abi-decoder version update that is causing this issue.

Suggested Fix

git revert 16bd5d79f25d1851a0b87e4a359cb3f26eb7fb7e

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
cgeweckecommented, Jul 8, 2019

0.2.4 has the new decoder. Thanks for fixing!

1reaction
bh2smithcommented, Jun 29, 2019

Thanks @cgewecke for looking into this. In the meantime I have dug into the abi-decoder repo and discovered a PR that bumps the web3 version as you suggested. I have also spoken with @denisgranha and he is ready to merge the PR once the appropriate changes are in place. If you like I can let you know once this has been taken care of and whether or not it helped with the original issue. 🍻

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the (ERR! code ENOLOCAL npm ERR!) Could not ...
This is an issue in node which is caused by white space in your windows username (possibly between the first-name and last-name in...
Read more >
Common errors | npm Docs
Broken npm installation; Random errors; No compatible version found; Permissions errors; Error: ENOENT, stat 'C:\Users\<user>\AppData\Roaming\npm' on ...
Read more >
ERR! code ENOLOCAL npm ERR! Could not install from error
ERR! code ENOLOCAL npm ERR! Could not install from error Solvednpm ERR! code ENOLOCAL npm ERR! Could not install from ...
Read more >
When trying to install npm, I get this error: code ENOLOCAL ...
When trying to install npm, I get this error: code ENOLOCAL. npm ERR! Could not install from "" as it does not contain...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found