Skip to content
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

Once package@1.0.0 was published, then unpublish, it cannot be published again with the same version #3076

Closed
vitmalina opened this issue Apr 14, 2021 · 2 comments
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 7.x work is associated with a specific npm 7 release

Comments

@vitmalina
Copy link

I have package@1.0.0 and I run

npm publish

Works great, package get published. Shows up on the website. Then I unpublish it within 24 hour period (package has not been downloaded by anyone yet, nor was it used as dependency)

npm unpublish package@1.0.0

it gets unpublished, all good, disappears from website. However, once I fix the issues and try to publish it again with

npm publish

it gives me this error message

npm ERR! code E400
npm ERR! 400 Bad Request - PUT https://registry.npmjs.org/package - Cannot publish over previously published version "1.0.0".
@vitmalina vitmalina added Bug thing that needs fixing Needs Triage needs review for next steps Release 7.x work is associated with a specific npm 7 release labels Apr 14, 2021
@nlf
Copy link
Contributor

nlf commented Apr 14, 2021

this is intentional behavior and we have no plans of changing it.

@nlf nlf closed this as completed Apr 14, 2021
@vitmalina
Copy link
Author

Got it. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 7.x work is associated with a specific npm 7 release
Projects
None yet
Development

No branches or pull requests

2 participants