You can manage settings for your user account profile from the web or command line.
From the web, you can change the following user profile settings:
On the account settings page, you will find a button to link your GitHub account. Click that.
If you are not currently logged in to GitHub you will be prompted to go through the authentication flow.
After successfully logging in, or if you already had an active browser sessions, you will be prompted to "authorize npm account link", click the button.
You will be redirected to npm and the link will show as successful in your settings.
On the account settings page, you will find a button to remove your GitHub account. Click that.
Note: Clicking remove will only remove the link from your npm account. You need to revoke permissions from your GitHub app authorization settings to permanently remove the integration from your GitHub account
Note: Your npm client must be version 5.5.1 or higher to change your account settings from the CLI. To update to the latest version of npm, on the command line, run npm install npm@latest -g
To view your user profile settings from the CLI, on the command line, run the following command:
npm profile get
From the CLI, you can change the following properties for your user account:
emailtwo-factor authfullnamehomepagefreenodepasswordOn the command line, type the following command, replacing property with the name of the property, and value with the new value:
npm profile set <prop> <value>
When prompted, provide your current password.
If you have enabled two-factor authentication on your account, when prompted, enter a one-time password.
For more details, see the profile command line documentation.
npm profile set password
When prompted, provide your current password.
When prompted, type a new password.
To protect your account, when you reset your password from the command line, it must:
Enabling two-factor authentication on your account helps protect against unauthorized access to your account and packages.
To enable, configure, and disable two-factor authentication from the command line, see "Configuring two-factor authentication".