[BUG] Inconsistent --silent for npm install #4877
Labels
config:display
Issues dealing with display of data to terminal
semver:major
backwards-incompatible breaking changes
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
When running
npm install
withjson
andsilent
options the result are inconsistent.json
+silent
options when the package does not exist removes the logs such asnpm ERR! code E404
+ prints the JSON as expected 👍json
options when the package exists prints the JSON as expected 👍json
+silent
options when the package exists removes the JSON 👎$ npm install --json --silent chalk # no output
Expected Behavior
npm install --silent --json <existingPackage>
should silent the log and leave the json result.Steps To Reproduce
Default config
Environment
8.9.0
v18.1.0
21.4.0 Darwin Kernel Version 21.4.0 RELEASE_ARM64_T6000 arm64
The text was updated successfully, but these errors were encountered: