Skip to content

[BUG] Cannot find module '../lightningcss.linux-x64-gnu.node' #8516

@jakubmazanec

Description

@jakubmazanec

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. I suspect this PR is the reason: #8431

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: 11.5.2
  • Node.js: 24.6.0
  • OS Name: Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next steps

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions