Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-33784

add support for npm unpublish

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.40.0
    • Fix Version/s: None
    • Component/s: NPM
    • Labels:

      Description

      I'm trying to unpublish a specific version package from NPM:

      `npm unpublish --registry https://[DOMAIN]/repository/npm-private/ [PACKAGE-NAME]@0.1.1-beta.0 "This package is deprecated" --location=global`

       
      and I get this error:

      ```
      npm WARN config global `-global`, `local` are deprecated. Use `-location=global` instead.
      npm ERR! code EUSAGE
      npm ERR!
      npm ERR! Remove a package from the registry
      npm ERR!
      npm ERR! Usage:
      npm ERR! npm unpublish [<@scope>/]<pkg>[@<version>]
      npm ERR!
      npm ERR! Options:
      npm ERR! [--dry-run] [-f|--force]
      npm ERR! [w|-workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
      npm ERR! [-ws|--workspaces]
      npm ERR!
      npm ERR! Run "npm help unpublish" for more info

      npm ERR! A complete log of this run can be found in:
      npm ERR! C:\Users\admin\AppData\Local\npm-cache_logs\2022-06-29T08_52_30_210Z-debug-0.log
      ```

      For my situation, I don't want to use deprecate, but unpublish.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              amitl amit leshem
              Last Updated By:
              Joe Tom Joe Tom
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Date of First Response:

                  tigCommentSecurity.panel-title