How do I remove a tag from npm?

I posted a grunt plugin for npm that tracked 0.4 RC charts using a tag master

. I have posted:

npm publish --tag master

      

Now that the grunt 0.4 release has been released I have re-published my plugin as latest

via:

npm publish

      

How can I remove a tag master

from the npm repository? It is still listed in dist-tags

when I am npm view [my-plugin]

.

Thanks in advance.

+3


source to share


2 answers


Failed to remove dist labels from registry npm

before npm@2.5.0

. There is command line syntax for this if you are upgrading to a newer version npm

- see https://github.com/npm/npm/wiki/Troubleshooting#try-the-latest-stable-version-of-npm for full details on upgrading ...



npm install -g npm@latest # most common way to upgrade npm dist-tag rm <pkg> <tag>

+5


source


master

maybe in your npm config.

check what this gives:

npm config get tag

      

To revert to use latest

, this should do:



npm config set tag latest

      

Another possibility is to post the tagged version master

using:

npm unpublish <name>[@<version>]

      

this will most likely remove the tag in the dist-tags (but since I haven't tried it, not sure).

+1


source







All Articles