npm / npm/cli

[BUG] npm ls -all results in error after installing ganache-core@2.13.2

Open
#3,697 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug Priority 2 Release 7.x
Dominant language
JavaScript
Stars
10.1k
Forks
4.7k
Avg merge
2d 2h
Merged PRs (30d)
19

Description

Is there an existing issue for this?
  • I have searched the existing issues
Current Behavior

When running npm i ; npm ls --all on a package with ganache-core@2.13.2 listed as one of the dependencies, I get the following error:

npm ERR! code ELSPROBLEMS
npm ERR! invalid: eth-sig-util@1.4.2 /src/example-apps/hardhat_example/node_modules/ganache-core/node_modules/web3-provider-engine/node_modules/eth-sig-util
npm ERR! invalid: ethereumjs-abi@0.6.8 /src/example-apps/hardhat_example/node_modules/ganache-core/node_modules/ethereumjs-abi

Expected Behavior

Perhaps an error message while installing if there is a problem in one of the packages.

Otherwise the correct results from npm ls --all.

Steps To Reproduce

1.Use this package.json:

{
    "name": "my-project",
    "devDependencies": {
        "ganache-core": "2.13.2"
    }
}
  1. Run npm i
  2. Run npm ls -all
Environment
  • OS: macos
  • Node: v16.8.0
  • npm: 7.21.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the provided package.json on macOS using Node v16.8.0 and npm 7.21.0, then run npm i and npm ls --all. Trace how npm reports the invalid eth-sig-util and ethereumjs-abi dependencies under ganache-core@2.13.2. Done means the dependency tree is handled consistently with the expected installation or diagnostic behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.