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.
Log in to npm with your user account. Navigate to the package page for the package you want to unpublish, replacing <your-package-name> with the name of your package: https://www.npmjs.com/package/<your-package-name> . Click Settings. Under "delete package", click Delete package.
To unpublish a single package version, run npm unpublish <package_name>@<version> . If all the versions of a package can be unpublished, you can unpublish all versions at once by running npm unpublish <package_name> --force .
npm registries support tags, which are string aliases for package versions. You can use tags to provide an alias instead of version numbers. For example, you might have a project with multiple streams of development and use a different tag (for example, stable , beta , dev , canary ) for each stream.
It was not possible to remove dist-tags from the npm
registry prior to [email protected]
. 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>
master
may be in your npm config.
check what this gives:
npm config get tag
To get back to use latest
, this should do:
npm config set tag latest
An other possibility is to un-publish the version with the master
tag using:
npm unpublish <name>[@<version>]
this is likely to remove the tag in dist-tags (but since I haven't tried, not certain).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With