summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2022-08-09 09:23:43 +0200
committerGitHub <noreply@github.com>2022-08-09 15:23:43 +0800
commitfba20550f917a808846256d279ac3b4f9e302936 (patch)
tree9bd04fa225dcb0a443e3b1c43983fbb6a8818f5d /docs
parentcc6927b2d8337d0bf9024c3d77cff00a9397872f (diff)
downloadgitea-fba20550f917a808846256d279ac3b4f9e302936.tar.gz
gitea-fba20550f917a808846256d279ac3b4f9e302936.zip
Add support for `npm unpublish` (#20688)
Diffstat (limited to 'docs')
-rw-r--r--docs/content/doc/packages/npm.en-us.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/docs/content/doc/packages/npm.en-us.md b/docs/content/doc/packages/npm.en-us.md
index 9ab4ac900c..122f306ee5 100644
--- a/docs/content/doc/packages/npm.en-us.md
+++ b/docs/content/doc/packages/npm.en-us.md
@@ -67,6 +67,26 @@ npm publish
You cannot publish a package if a package of the same name and version already exists. You must delete the existing package first.
+## Unpublish a package
+
+Delete a package by running the following command:
+
+```shell
+npm unpublish {package_name}[@{package_version}]
+```
+
+| Parameter | Description |
+| ----------------- | ----------- |
+| `package_name` | The package name. |
+| `package_version` | The package version. |
+
+For example:
+
+```shell
+npm unpublish @test/test_package
+npm unpublish @test/test_package@1.0.0
+```
+
## Install a package
To install a package from the package registry, execute the following command:
@@ -113,6 +133,7 @@ The tag name must not be a valid version. All tag names which are parsable as a
npm install
npm ci
npm publish
+npm unpublish
npm dist-tag
npm view
```