Description
Current Behavior:
I received an error message at the command line:
$ npm unpublish my-lib@1.4.0
npm ERR! code E405
npm ERR! 405 Method Not Allowed - PUT https://registry.npmjs.org/my-lib/-rev/14-878ad331638f5b05ac5eb9a52ff15fc0 - You can no longer unpublish this package.
npm ERR! Failed criteria:
npm ERR! has dependent packages in the registry
npm ERR!
npm ERR! Please deprecate it instead:
npm ERR! npm deprecate -f 'my-lib@1.4.0' "this package has been deprecated"
npm ERR! To learn more about our unpublish policies, see https://www.npmjs.com/policies/unpublish
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/ovdz/.npm/_logs/2020-08-18T08_20_02_031Z-debug.log
Expected Behavior:
I expected the package to be unpublished, like described in https://docs.npmjs.com/cli/unpublish
An other page, https://www.npmjs.com/policies/unpublish talks about "newly created packages"
The description of both pages do not match.
Anyhow, i think it should be possible to remove packages with errors within a few minutes.
Steps To Reproduce:
publish in the root directory of a before published package
npm publish
unpublish with package name and version number
npm unpublish before-published-package@1.2.3
Environment:
- OS: MacOS 10.14.6 (Mojave)
- Node: 12.18.0
- NPM: 6.14.4