Skip to content

[BUG] unexpected change in behavior of npm view --json of invalid version of a package #1639

Closed

Description

@MylesBorins

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

Activity

  1. added
    Release 7.xwork is associated with a specific npm 7 release
    Bugthing that needs fixing
    Needs Triageneeds review for next steps
    on Aug 7, 2020
  2. added this to the OSS - Sprint 13 milestone on Aug 10, 2020
  3. darcyclarke commented on Aug 14, 2020

    @darcyclarke
    Contributor

    This should be addressed when we land: #1657

  4. MylesBorins commented on Sep 1, 2020

    @MylesBorins
    ContributorAuthor

    This has not been entirely fixed

    npm v6.x output

    [~]$ npm view --json lodash@0.0.0
    [~]$

    npm 7.x output

    [~]$ npm view --json lodash@0.0.0
    
    [~]$

    Notice the additional newline that we have now. This is probably a non issue for most cases but it did break some internals on CITGM (but were patched easily enough)

  5. ruyadorno commented on Sep 16, 2020

    @ruyadorno
    Contributor

    landed in v7.0.0-beta.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Bugthing that needs fixingRelease 7.xwork is associated with a specific npm 7 release

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions