forked from go-gitea/gitea
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for
npm unpublish
(go-gitea#20688)
- Loading branch information
Showing
4 changed files
with
175 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
``` | ||
|
||
## 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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters