1 ---
2 title: npm-undeprecate
3 section: 1
4 description: Undeprecate a version of a package
5 github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-undeprecate.md
8 redirect_from:
9 - /cli-commands/npm-undeprecate
10 - /cli-commands/undeprecate
11 - /cli-documentation/cli-commands/npm-undeprecate
12 - /cli-documentation/cli-commands/undeprecate
13 - /cli-documentation/commands/npm-undeprecate
14 - /cli-documentation/commands/undeprecate
15 - /cli-documentation/npm-undeprecate
16 - /cli-documentation/undeprecate
17 - /cli-documentation/v11/cli-commands/npm-undeprecate
18 - /cli-documentation/v11/cli-commands/undeprecate
19 - /cli-documentation/v11/commands/npm-undeprecate
20 - /cli-documentation/v11/commands/undeprecate
21 - /cli-documentation/v11/npm-undeprecate
22 - /cli-documentation/v11/undeprecate
23 - /cli/cli-commands/npm-undeprecate
24 - /cli/cli-commands/undeprecate
25 - /cli/commands/npm-undeprecate
26 - /cli/commands/undeprecate
27 - /cli/npm-undeprecate
28 - /cli/undeprecate
29 - /cli/v11/cli-commands/npm-undeprecate
30 - /cli/v11/cli-commands/undeprecate
31 - /cli/v11/commands/undeprecate
32 - /cli/v11/npm-undeprecate
33 - /cli/v11/undeprecate
34 - /commands/npm-undeprecate
35 - /commands/undeprecate
36 ---
37
38 ### Synopsis
39
40 ```bash
41 npm undeprecate <package-spec>
42 ```
43
44 Note: This command is unaware of workspaces.
45
46 ### Description
47
48 This command will update the npm registry entry for a package, removing any deprecation warnings that currently exist.
49
50 It works in the same way as [npm deprecate](/cli/v11/commands/npm-deprecate), except that this command removes deprecation warnings instead of adding them.
51
52 ### Configuration
53
54 #### `registry`
55
56 - Default: "https://registry.npmjs.org/"
57 - Type: URL
58
59 The base URL of the npm registry.
60
61 #### `otp`
62
63 - Default: null
64 - Type: null or String
65
66 This is a one-time password from a two-factor authenticator. It's needed when publishing or changing package permissions with `npm access`.
67
68 If not set, and a registry response fails with a challenge for a one-time password, npm will prompt on the command line for one.
69
70 #### `dry-run`
71
72 - Default: false
73 - Type: Boolean
74
75 Indicates that you don't want npm to make any changes and that it should only report what it would have done. This can be passed into any of the commands that modify your local installation, eg, `install`, `update`, `dedupe`, `uninstall`, as well as `pack` and `publish`.
76
77 Note: This is NOT honored by other network related commands, eg `dist-tags`, `owner`, etc.
78
79 ### See Also
80
81 - [npm deprecate](/cli/v11/commands/npm-deprecate)