我已经向 npm 发布了一个 grunt 插件,它一直在使用 master
跟踪 grunt 0.4 RC。标签。我一直在发布:
npm publish --tag master
现在 grunt 0.4 final 已经发布,我重新发布了我的插件
latest
通过:npm publish
我现在如何删除
master
来自 npm 存储库的标签?它仍然列在dist-tags
当我npm view [my-plugin]
.提前致谢。
最佳答案
无法从 npm
中删除 dist-tags npm@2.5.0
之前的注册表.如果您更新到 npm
的新版本,现在有一个用于此的命令行语法。 -- 见 https://github.com/npm/npm/wiki/Troubleshooting#try-the-latest-stable-version-of-npm有关升级的完整详细信息。
安装最新版本的 npm
npm install -g npm # most common way to upgrade
从包中清除不再使用的标签。
npm dist-tag rm <pkg> <tag>
关于npm - 如何从 npm 中删除标签?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14949886/