[BUG] Version 7.x Nerfs JSON Output for Install Command #2773
Labels
Bug
thing that needs fixing
Priority 2
secondary priority issue
Release 7.x
work is associated with a specific npm 7 release
Summary:
npm 7.x seriously nerfed the usefulness of the
--json
flag when paired with theinstall
command. (It may have done so with other commands as well; I've only testedinstall
.)I do realize that
--json
is marked experimental for all commands other thanls
andsearch
, but this is a MASSIVE regression in usefulness. I can understand changing the structure of the returned JSON, etc. while the feature is experimental, but nuking all of the details and returning only the bare minimum summary information must be an inadvertent change, right?This makes npm exceptionally difficult to integrate with build tools and scripts. I've rolled back from 7.x until this can be addressed. Thanks!
Current Behavior:
Using npm
7.5.3
run this command:npm install jquery --json
The output produced is:
Expected Behavior:
Here's what npm
< 7
spits out for the same command.Notice the detail in
added
—we can see what was done, not just how many things were done.Steps To Reproduce:
npm install [any package name] --json
on npm 7.x and compare the output to npm 6.x and below.Environment:
The text was updated successfully, but these errors were encountered: