npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

How do I publish without assigning a tag to the version?

I’m wanting to release a version, say v1.1.7, and the latest version is v2.0.4. Of course, I don’t want to modify what latest is, but I also don’t have a specific dist tag for v1.x releases. (npm install pkg@1 is sufficient for my needs - a full tag is overkill).

Currently, I’m just doing this, but I was hoping there was a better way.

npm publish --tag dummy # Just any dummy, unused tag
npm dist-tag rm ${PACKAGE_NAME} dummy