npm unpublish

从注册表中删除一个包

概要

要了解有关 npm 注册表如何处理取消发布的更多信息,请参阅我们的 unpublish policies

取消发布包的单个版本

npm unpublish [<@scope>/]<pkg>@<version>

取消发布整个包

npm unpublish [<@scope>/]<pkg> --force

警告

如果您的目的是鼓励用户升级,或者您不再想维护一个包,请考虑使用 deprecate 命令。

描述

这将从注册表中删除包版本,删除其条目并删除 tarball。

如果你不是 登录,npm 注册表会返回错误。

DQ5xwx55S2Q9Cipm8CvvYOiulOlkwowAXeaDbuo3oBRFon+YdmmpceYgWzirKBTZorqN0qTw+TPEE3jfAXmMjhuHzOYjbZ8SPjFMd6XO2ZcZ+hPCNyx3RLWlBLA2AgwKqn3ppLfymytcW4m08ACtZQ==

ABwstlmgZn0aiWa1gYltr9mMLQAXBRNy9kYH9K1HyUkYkC2xJzLbCxAMoRivkE+1oJuYJf21TfKWDwPC3Jhs9lvmfYzWVyxAcGI9a8Egom+DWsHwCScNLraa6LQ9gWPb5NU4vHf9m3YZ9IqDWtERH1MzUbKGTlX63vBqVZ8I1VT7sdf5NHgGym0vqrBWPft4C0gHTPrreWADOvboJ3HaatiNSeyzcIlq3o/AMtGSKfQYR7TrKEICeM0ixdVMgdiAZMtxilDMWIo0eHUfW/d0vBlbnmZK9fKqCcI1mJBbRQvPWCNBdVd4vMU4fLM4OEXH9fnT7cKmoOUxSwMz3rXGBkcU9wRazuZ/6E95dQ6O6Dk=

配置

dry-run

    2x2PgnfhSfn+ndqCKDA2YYoWMfGeJMuQtzA4/XNZRgqtdjnJ51gPpD0M9Bx0bLlpz1FIy633YgpGMHZbMOc6oQ==

tDZVwrGrAkenaVAA6GT1TC9byrMmg6T19skU9lflmBFt/aHJnlCfPZel9EgZr1qAsU70cgWXLnuuzASiT6xD40HHqge53t+OpEPFmnrpTPWEbF3rVYiG3a9gS9vPJ6ndRtnZ76VEtXseea14gRGkShmcexpDrAV5cKMmawTagVm3hBDW0bQ6S4yqvFnpgMCcwSiW6XKTyhl9/iPBSBrI7Tw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