npm Publish & Registry/Login to registry

Authenticate to a registry.

Section: Registry auth and account actions

Login to registry

bash
bash
npm login
Explanation

Authenticate to a registry.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Registry auth and account actions
Logout from registry
Clear login credentials for the current registry.
OpenIn sheetbashsame section
Show current username
Display the authenticated npm username.
OpenIn sheetbashsame section
List packages you can access
Show package access rules for the current account.
OpenIn sheetbashsame section
List package owners
Show owners of a package.
OpenIn sheetbashsame section
Add a package owner
Grant owner rights on a package.
OpenIn sheetbashsame section
Bump patch version
Increment patch version and create a git tag by default.
OpenIn sheetbash1 tag match