Currently learning npm.
I have 2 dist-tags, beta: 1.0.1 & latest: 1.0.1.
I want to remove beta: 1.0.1 & I'm not able to do it.
I tried the following, doesn't work.
npm dist-tag rm beta 1.0.1
npm dist-tag rm beta
npm dist-tag rm 1.0.1
Worst condition, npm docs doesn't have examples on how to remove a dist-tag!
Edit: As suggested, gone through the github page. Contributors asking to update npm. Still didn't work.
According to this how-to-npm GitHub issue, you should remove dist-tags like this:
npm dist-tag rm <module name> beta
Where <module name> is copied from "name" parameter in package.json:
{
"name": "@user/exampleNameOfModule",
^
... |
- copy this, without quotes
},
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