cli icon indicating copy to clipboard operation
cli copied to clipboard

when npm unpublish package, show 422 Unprocessable Entity

Open tclxjiaxing-huang opened this issue 1 year ago • 3 comments

How to handle this error image

tclxjiaxing-huang avatar Feb 19 '24 12:02 tclxjiaxing-huang

Don’t use force with unpublish; if it doesn’t work without that, then it’s not unpublishable.

ljharb avatar Feb 19 '24 15:02 ljharb

Don’t use force with unpublish; if it doesn’t work without that, then it’s not unpublishable.

if it’s not unpublishableso, how can I unpublish, I am sure the package need to unpublish.

tclxjiaxing-huang avatar Feb 20 '24 10:02 tclxjiaxing-huang

You can’t. Packages are not permitted to be unpublished after 72 hours, or, if it has a certain number of dependents/installs.

ljharb avatar Feb 20 '24 15:02 ljharb

Please use the template when filling out a bug report.

This is the npm registry telling you that you can not unpublish. It is not a cli bug.

wraithgar avatar Feb 28 '24 21:02 wraithgar