1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00

npm-login: add page (#14768)

This commit is contained in:
Martin Blume 2024-11-10 13:21:03 +01:00 committed by GitHub
parent 193c0fe90a
commit ff73d13f65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

16
pages/common/npm-login.md Normal file
View file

@ -0,0 +1,16 @@
# 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}}`