According to the CLI docs for
If the tag you’re adding is
latestand you have two-factor authentication on auth-and-writes then you’ll need to include an otp on the command line with
However, I just attempted to update my
next tag without passing
--otp <OTP>, and it failed with a 500. I’d be happy to make a PR to the docs, but I wanted to make sure I understood the rule here. Did this fail because it was updating an existing tag, rather than adding a new tag? I looked through the
npm-registry-client code, and I didn’t find the business logic there, but if there is some other place I can look to derive the proper rule, I’d be happy to write something up.
Thanks npm team for being awesome!