Skip to content

Commit 483f48d

Browse files
authored
Add example of undeprecating entire package (#1135)
<!-- What / Why --> <!-- Describe the request in detail. What it does and why it's being changed. --> Hi npm team, first of all, thanks for your continued effort on npm and documentation! Add a command example of undeprecating an entire package, which appears to be missing from the documentation currently. The closest thing currently is this heading + sentence: > # Undeprecating a package or version > > To undeprecate a package, replace "<message>" with "" (an empty string) in one of the above commands. But I would argue it's a bit open to interpretation, and doesn't explicitly show the command to undeprecate an entire package. ## References <!-- Examples: Related to #0 Depends on #0 Blocked by #0 Fixes #0 Closes #0 --> --
1 parent 53a824d commit 483f48d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

content/packages-and-modules/updating-and-managing-your-published-packages/deprecating-and-undeprecating-packages-or-package-versions.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,13 @@ If you have two-factor auth, add a one-time password to the command, `--otp=1234
7474

7575
To undeprecate a package, replace `"<message>"` with `""` (an empty string) in one of the above commands.
7676

77-
For example, to undeprecate a package version, run the following command, replacing `<package-name>` with the name of your package, and `<version>` with your version number:
77+
For example, to undeprecate an entire package, run the following command, replacing `<package-name>` with the name of your package, and `<version>` with your version number:
78+
79+
```
80+
npm deprecate <package-name> ""
81+
```
82+
83+
Or to undeprecate only a single package version, run the following command, replacing `<package-name>` with the name of your package, and `<version>` with your version number:
7884

7985
```
8086
npm deprecate <package-name>@<version> ""

0 commit comments

Comments
 (0)