---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# npm deprecate

> Mark a version or range of versions of an `npm` package as deprecated.
> More information: <https://docs.npmjs.com/cli/commands/npm-deprecate/>.

- Deprecate a specific version of a package:

`npm deprecate {{package_name}}@{{version}} "{{deprecation_message}}"`

- Deprecate a range of versions of a package:

`npm deprecate {{package_name}}@"<{{version_range}}" "{{deprecation_message}}"`

- Un-deprecate a specific version of a package:

`npm deprecate {{package_name}}@{{version}} ""`
