Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to point "latest" dist-tag to a previous version in npm?

Tags:

npm

I have a published project with a few dist-tags: "latest", "dev", and "beta".

I know how to bump the version by doing npm version 2.4.7 or npm version patch and I know how to add dist-tags with npm dist-tag add <pkg>@<version> <tag>, but how do I point the "latest" tag to a previous version?

like image 757
embracethefuture Avatar asked Sep 10 '25 18:09

embracethefuture


1 Answers

npm dist-tag add <pkg name>@<version> latest

Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!