diff options
author | Scott Trinh <scottyparade@gmail.com> | 2018-11-26 19:02:19 +0300 |
---|---|---|
committer | Kat Marchán <kzm@zkat.tech> | 2018-11-26 19:02:19 +0300 |
commit | 8a6ecc7936dae2f51638397ff5a1d35cccda5495 (patch) | |
tree | cdc6798eb6756e0c011c0506ca0b99980f332f4a | |
parent | 15da8269032bf509ade3252978e934f2a61d4499 (diff) |
docs: Update OTP documentation for dist-tag add (#74)
See discussion here: https://npm.community/t/npm-dist-tag-add-with-2fa-enabled-fails-for-non-latest-tag-with-500/2432
TL;DR:
> To be clear, you can specify an existing tag and it’ll change it. If you have 2FA enabled, you do need to specify `--otp` and if you don’t, you should get a `401` as above.
Ref: https://npm.community/t/npm-dist-tag-add-with-2fa-enabled-fails-for-non-latest-tag-with-500/2432
PR-URL: https://github.com/npm/cli/pull/74
Credit: @scotttrinh
Reviewed-By: @iarna
Reviewed-By: @zkat
-rw-r--r-- | doc/cli/npm-dist-tag.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/cli/npm-dist-tag.md b/doc/cli/npm-dist-tag.md index 4572644ce..1a69d1b6c 100644 --- a/doc/cli/npm-dist-tag.md +++ b/doc/cli/npm-dist-tag.md @@ -15,9 +15,9 @@ Add, remove, and enumerate distribution tags on a package: * add: Tags the specified version of the package with the specified tag, or the - `--tag` config if not specified. If the tag you're adding is `latest` and you - have two-factor authentication on auth-and-writes then you'll need to include - an otp on the command line with `--otp`. + `--tag` config if not specified. If you have two-factor authentication on + auth-and-writes then you’ll need to include a one-time password on the + command line with `--otp <one-time password>`. * rm: Clear a tag that is no longer in use from the package. |