1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-01 22:15:23 +02:00
tldr/pages/common/npm-login.md

17 lines
426 B
Markdown

# npm login
> Log in to a registry user account.
> See also: `npm logout` for logging out.
> More information: <https://docs.npmjs.com/cli/commands/npm-login>.
- Log in to a registry user account and save the credentials to the `.npmrc` file:
`npm login`
- Log in using a custom registry:
`npm login --registry={{registry_url}}`
- Log in using a specific authentication strategy:
`npm login --auth-type={{legacy|web}}`