[BUG] unexpected change in behavior of npm view --json of invalid version of a package (original) (raw)

Current Behavior:

$ npm view --json lodash@0.0.0 undefined $

Expected Behavior:

In previous versions of npm there would be no content returned

$ npm view --json lodash@0.0.0 $

Steps To Reproduce:

Run above commands

Environment:

OSX 10.15.6
Node.js v14.6.0
npm v7.0.0-beta.2