How can I remove a tag from npm?

npm

Solution

It was not possible to remove dist-tags from the `npm` registry prior to `npm@2.5.0`. There is now a command-line syntax for this, provided you update to a new version of `npm` -- see https://github.com/npm/npm/wiki/Troubleshooting#try-the-latest-stable-version-of-npm for full details on upgrading.

Install latest version of npm

npm install -g npm    # most common way to upgrade

Clear a tag that is no longer in use from the package.

npm dist-tag rm <pkg> <tag>

Problem

I've published a grunt plugin to npm that's been tracking the grunt 0.4 RCs by using the `master` tag. I've been publishing with: ``` npm publish --tag master ``` Now that grunt 0.4 final has been released, I've re-published my plugin as `latest` via: ``` npm publish ``` How can I now remove the `master` tag from the npm repository? It is still listed in `dist-tags` when I `npm view [my-plugin]`. Thanks in advance.

Original source