Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error on updating packages in npm

I get this error when updating my package.

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

like image 829
Sarath Kumar Rajendran Avatar asked Feb 07 '18 10:02

Sarath Kumar Rajendran


2 Answers

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

like image 129
Anton Novik Avatar answered Nov 18 '22 04:11

Anton Novik


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.

like image 23
Xanlantos Avatar answered Nov 18 '22 04:11

Xanlantos