npm profile enable-2fa [mode]
Enables two-factor authentication
Arguments
Name | Description |
---|---|
mode | Mode for two-factor authentication. Defaults to auth-and-writes mode |
Options
Name | Description |
---|---|
--registry <registry> | The base URL of the npm registry |
--otp <otp> | One-time password from a two-factor authenticator |