Mistakenly tagged a version as latest
on npm? Here’s how to fix it with dist-tags:
Tag the Version as
alpha
: Assign thealpha
tag to the mistaken version. For example, if your package ismy-package
and version1.0.1
was incorrectly tagged:npm dist-tag add [email protected] alpha
Update
latest
to the Stable Version: Pointlatest
to the correct stable version, like1.0.0
:npm dist-tag add [email protected] latest
Verify the Tags: Check the updated tags for
my-package
:npm dist-tag ls my-package
Output might look like:
alpha: 1.0.1 latest: 1.0.0
Keep your package versions clear and user-friendly with these simple steps!