[BUG] npm search module_does_not_exist --json
returns invalid JSON
#3737
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 7.x
work is associated with a specific npm 7 release
Is there an existing issue for this?
Current Behavior
npm search module_does_not_exist --json
returns invalid JSON
Expected Behavior
npm search module_does_not_exist --json
should valid JSON:
[]
Steps To Reproduce
Outputs valid JSON
Outputs just
]
which is not valid json so e.g.
npm search lodash_does_not_exist --json | jq
fails.Environment
The text was updated successfully, but these errors were encountered: