[Bug] NPM installation error: code ENOLOCAL (abi-decoder version)
See original GitHub issueProblem 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:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
0.2.4
has the new decoder. Thanks for fixing!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. 🍻