Skip to content

[BUG] npm update --dry-run is bloken #9187

@zdm

Description

@zdm

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

  1. It update node_modules/.package-lock.json event if --dry-run option is provided.
  2. It produce text and json output if --dry-run is specified.

Expected Behavior

I am expecting that no changes will be performed in dry-run mode.

I am expecting clear json output.

Steps To Reproduce

  1. Run npm up --dry-run --json
  2. See text + json output
  3. Run npm up --dry-run --json once more
  4. See nothing, this is because .package-lock.json was updated

Environment

  • npm: 11.12.1
  • Node.js: v24.14.1
  • OS Name:
  • System Model Name:
  • npm config:
; copy and paste output from `npm config ls` here

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingPriority 2secondary priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions