Skip to content

[BUG] npm dedupe fails with TypeError: Cannot read property 'path' of null #3565

@zfeher

Description

@zfeher

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

npm dedupe fails with an error TypeError: Cannot read property 'path' of null

npm debug.log

Expected Behavior

npm dedupe should not fail

Steps To Reproduce

  1. In this environment: Ubuntu 20.04, Node 14.17.3, npm 7.20.0

  2. With this config:

// package.json
{
  "devDependencies": {
    "@storybook/vue": "6.3.4"
  }
}
  1. Run npm i, then run npm dedupe

  2. See error: TypeError: Cannot read property 'path' of null

Environment

  • OS: Ubuntu 20.04
  • Node: 14.17.3
  • npm: 7.20.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next stepsRelease 7.xwork is associated with a specific npm 7 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions