-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] unpublish
didn't unpublish
#2125
Comments
After 48-72 hours, no package version can ever be unpublished. Something published 2 weeks ago is there forever. |
From https://www.npmjs.com/policies/unpublish:
The aforementioned package had about 50 installs so far (overall), no other package in the registry depends on it and it has a single owner/maintainer so all three conditions are met. Also, the output of the Yet, my package version isn't unpublished. Where am I doing a mistake? |
Fair point. I also don't think you can unpublish the last version of a package, regardless. Meaning, you can publish a new version, and then unpublish v1.0.0. |
Ah! Will try that, thanks. In that case, the "bug" is in the CLI output / exit code – it should say "cannot unpublish the latest version" or something. |
So it turns out the problem was with auth – I'm on a new computer and was not properly logged in. After running Some observations:
|
Can you try to replicate this same behavior on npm v7.0.8? |
Behaves the same in 7.0.9.
Behaves the same in 7.0.9. |
npm If your bug is preproducible on If your issue was a feature request, please consider opening a new RRFC or RFC. If your issue was a question or other idea that was not CLI-specific, consider opening a discussion on our feedback repo |
regression #7650 |
it is no longer true that you can unpublish a previous version after publishing a newer one. |
Current Behavior:
I ran
npm unpublish
like this:I don't quite know how to interpret the output but the exit code was 0 so assume it worked.
However, even after giving it some time (~12 hours now), the package is still there:
https://www.npmjs.com/package/@shoptet-temp-20201015/frontet/v/1.0.0
Expected Behavior:
The package version should be unpublished. Is the problem in that the package has a single version only? The
unpublish
command ended with exit code0
so I assume it doesn't matter.Environment:
The text was updated successfully, but these errors were encountered: