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

17 lines
382 B
Markdown
Raw Normal View History

2024-11-10 13:21:03 +01:00
# npm login
> Login to a registry user account.
> More information: <https://docs.npmjs.com/cli/commands/npm-login>.
- Login to a registry user account and save the credentials to the `.npmrc` file:
`npm login`
- Login, using a custom registry:
`npm login --registry={{registry_url}}`
- Login, using a specific authentication strategy:
`npm login --auth-type={{legacy|web}}`