Skip to content

[BUG] npm-deprecate doesn't allow to undeprecate packages anymore #2730

@jantimon

Description

@jantimon

Current Behavior:

npm deprecate my-package@"4.0.1" ""
npm ERR! 
npm ERR! Usage: npm deprecate <pkg>[@<version>] <message>

Expected Behavior:

I would expect it to work similiar to npm@6 as according the documentation passing an empty string is still allowed.

from https://docs.npmjs.com/cli/v7/commands/npm-deprecate

To un-deprecate a package, specify an empty string ("") for the message argument. Note that you must use double quotes with no space between them to format an empty string.

Steps To Reproduce:

npm deprecate my-package@"4.0.1" ""

Environment:

  • OS: OS-X 11.1
  • node: 15.9.0
    -npm 7.5.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingPriority 2secondary priority issueRelease 7.xwork is associated with a specific npm 7 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions