Skip to content

[BUG] Cannot find module '../lightningcss.linux-x64-gnu.node' NPM does not remove packages from the' lockfile' #8667

@vihvarn

Description

@vihvarn

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

Npm messes up lockfile when updating unrelated dependencies.

Expected Behavior

Npm doesn't remove packages from the lockfile.

Steps To Reproduce

1.Install newest Npm.
2.Checkout this commit: jakubmazanec/tools@78bacfc
3.Run npm install
4.Dependencies are removed, e.g.: jakubmazanec/tools@28fa06f#diff-053150b640a7ce75eff69d1a22cae7f0f94ad64ce9a855db544dda0929316519

Environment

  • npm: latest
  • Node.js: latest
  • OS Name: windows 11
  • System Model Name:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next steps

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions