npm profile enable-2fa [mode]

Enables two-factor authentication

Arguments

NameDescription
modeMode for two-factor authentication. Defaults to auth-and-writes mode

Options

NameDescription
--registry <registry>The base URL of the npm registry
--otp <otp>One-time password from a two-factor authenticator