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
Unpublish a package version
Remove a published version, subject to registry rules.
Bump patch version
Increment patch version and create a git tag by default.