Sarath  Kumar Rajendran
Sarath Kumar Rajendran

Reputation: 426

Error on updating packages in npm

I get this error when updating my package.

"cannot be republished until 24 hours have passed" in nodejs

Upvotes: 11

Views: 6468

Answers (2)

Xanlantos
Xanlantos

Reputation: 967

This will happen after you unpublished all versions with npm-unpublish. e.g.:

npm unpublish <package-name> -f

Sadly they do not warn you even if you just removed the last version e.g.:

npm unpublish <package-name>@<version>

after 24 hours it should work anyway.

I created a change request to give a warning about that.

Upvotes: 6

Anton Novik
Anton Novik

Reputation: 1837

Your package was most likely unpublished with npm-unpublish. If it is so, you can publish your package again only after 24 hours.

Upvotes: 16

Related Questions