为了你的安全,npm 可能需要额外的验证才能允许你登录你的账户。如果你未启用两步验证,系统可能会要求你通过发送到你账户所配置邮箱的一次性密码来进行验证。
🌐 For your security, npm may require additional verification to allow you to log in to your account. If you do not have two-factor authentication enabled, you may be asked to verify yourself with a one-time password sent to the email address configured for your account.
🌐 Logging in with a one-time password
系统将提示你输入一次性密码,该密码已发送到你的电子邮件。
检查你的电子邮件账户,查找来自 npm 的邮件,邮件中包含你的一次性密码(邮件主题将以“OTP for logging in to your account”开头)。
在一次性密码字段中输入电子邮件中的数字。
🌐 Enabling two-factor authentication
为了避免通过电子邮件发送的一次性密码进行额外登录步骤,你可以改为使用设备配置双重身份验证 (2FA)。
🌐 To avoid this additional login step, with a one-time password sent to you via e-mail, you can configure two-factor authentication with a device (2FA) instead.
🌐 Unable to access email
如果你无法访问链接到你的 npm 账户的电子邮件,你可以提交支持票以重置此电子邮件地址。
🌐 If you are unable to access the email linked to your npm account, you can submit a support ticket to reset this email address.
在“登录验证”表单下,点击尝试恢复你的账户。