npm Publish & Registry/Deprecate a version range

Mark versions as deprecated in the registry.

Section: Registry discovery and metadata

Deprecate a version range

bash
bash
npm deprecate <package>@"<range>" "message"
Explanation

Mark versions as deprecated in the registry.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Registry discovery and metadata
Search the registry
Search for packages from the CLI.
OpenIn sheetbashsame section
Open package repository
Open the package repository URL.
OpenIn sheetbashsame section
Open package homepage
Open a package homepage.
OpenIn sheetbashsame section
Unpublish a package version
Remove a published version, subject to registry rules.
OpenIn sheetbashsame section
Bump patch version
Increment patch version and create a git tag by default.
OpenIn sheetbash1 tag match
List dist-tags
Show all dist-tags for a package.
OpenIn sheetbash1 tag match