Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
- It update
node_modules/.package-lock.json event if --dry-run option is provided.
- 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
- Run
npm up --dry-run --json
- See text + json output
- Run
npm up --dry-run --json once more
- 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
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
node_modules/.package-lock.jsonevent if--dry-runoption is provided.--dry-runis 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
npm up --dry-run --jsonnpm up --dry-run --jsononce more.package-lock.jsonwas updatedEnvironment
; copy and paste output from `npm config ls` here