[BUG] install/etc with --dry-run outputs misleading info (since it didn't actually do stuff) #1999
Labels
Bug
thing that needs fixing
cmd:update
related to `npm update`
Priority 2
secondary priority issue
Release 7.x
work is associated with a specific npm 7 release
Current Behavior:
Installing (or other commands that call
Arborist.reify()
, like prune, dedupe, update, audit fix, etc.) using--dry-run
produces output like this:However, since the package tree was not actually reified, this output is misleading and not useful.
Expected Behavior:
Output a human-readable (or JSON in the case of
--json
) report of the changes that would have been made to the package tree, had it not been a--dry-run
install.Steps To Reproduce:
Run any reification command with
--dry-run
Environment:
npm v7, all environments
The text was updated successfully, but these errors were encountered: