npm profile
Manage the npm profile and related settings. Note: This command is unaware of workspaces. More information: https://docs.npmjs.com/cli/npm-profile/.
- View the npm profile details:
npm profile get
- View a specific property of the profile:
npm profile get
- Set or update a profile property:
npm profile set
- Set the public email address:
npm profile set email
- Set the public name:
npm profile set fullname
- Set a new password interactively:
npm profile set password
- Enable two-factor authentication (2FA) (defaults to
auth-and-writes):
npm profile enable-2fa
- Disable two-factor authentication (2FA):
npm profile disable-2fa
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
