This topic describes how to manage artifacts in an Npm private repository in Alibaba Cloud DevOps Packages.
Before you start
Use an NPM repository
Go to the NPM repository details page. In the left-side navigation pane, click User Guide.
Download the npmrc file from the download link, or specify the push and pull parameters by following the instructions.
Click the View icon to view the NPM account and password.

View and manage an NPM artifact
Go to the repository details page. In the left-side navigation pane, click Artifacts to view all artifacts in the repository.
You can also search for artifacts by name. In the upper-right corner of the page, click the search icon and specify the artifact name.

View artifact version details
On the Artifacts page, click the name of the artifact, and the details of the latest version will be displayed.
Switch to a different version by selecting the version from the drop-down list.

Disable an artifact version
On the Artifacts page, click the name of the artifact and turn on Disable Artifact.

The scope of disabled artifact applies to a specific version, not the artifact. That is to say, if you disable the 1.0.0 version in the artifact details panel, version 1.0.0 will not be available for download. However, you can still download other versions of the artifact.
Manage artifact metadata
On the Artifacts page, click the name of the artifact, and then click the Metadata tab. Each version has its own metadata.

Delete an artifact version
On the Artifacts page, click the name of the artifact, and then click Delete This Version.

Deleted artifact versions can be recovered. In the left-side navigation pane on Packages homepage, click Recycle Bin, and click
to recover it from the recycle bin.
