sou✌️ikinator
Change npm Release Tag After Publishing (dist-tags)

Change npm Release Tag After Publishing (dist-tags)

March 8, 2025
2 min read

Mistakenly tagged a version as latest on npm? Here’s how to fix it with dist-tags:

  1. Tag the Version as alpha: Assign the alpha tag to the mistaken version. For example, if your package is my-package and version 1.0.1 was incorrectly tagged:

    npm dist-tag add [email protected] alpha
  2. Update latest to the Stable Version: Point latest to the correct stable version, like 1.0.0:

    npm dist-tag add [email protected] latest
  3. 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!