[BUG] npm show --json outputs to stderr instead of stdout when registry responds with 404 #5286
Closed
2 tasks done
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 8.x
work is associated with a specific npm 8 release
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
run any command with
--json
and a404
response:all the content is on stderr:
empty result on stdout:
Expected Behavior
the json object should be written to stdout:
Steps To Reproduce
see above
Environment
The text was updated successfully, but these errors were encountered: