Skip to content

Instantly share code, notes, and snippets.

@ebual
Created July 1, 2019 15:51
Show Gist options
  • Save ebual/ea0fdb1c8f2403329a06402e50a553da to your computer and use it in GitHub Desktop.
Save ebual/ea0fdb1c8f2403329a06402e50a553da to your computer and use it in GitHub Desktop.
How to deprecate a NPM package in Artifactory

How to deprecate a NPM package in Artifactory

Why this guide

Artifactory does not support npm-deprecate.

Step by step

You can apply a deprecated message to a package or to a specific version of a package.

Deprecate a package

  1. Login to Artifactory
  2. Open the Artifact Repository Browser by clicking Artifacts in main navigation
  3. Select the npm package you want to deprecate
  4. Go to the Properties tab on the right
  5. Add a new property called npm.deprecated

    Value is your deprecation message.

  6. Check the Recursive checkbox
  7. Click Add and wait for the success msg

Deprecate a specific version of a package

  1. Login to Artifactory
  2. Open the Artifact Repository Browser by clicking Artifacts in main navigation
  3. Select the npm package version you want to deprecate

    You have to select a specific package (.tgz) file, not the folder!

  4. Go to the Properties tab on the right
  5. Add a new property called npm.deprecated

    Value is your deprecation message.

  6. Click Add and wait for the success msg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment