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

npm-{login,logout}: update page (#14857)

This commit is contained in:
Lena 2024-11-17 16:02:55 +01:00 committed by GitHub
parent b280d37776
commit 3a97d7dc7a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 7 deletions

View file

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

View file

@ -1,13 +1,13 @@
# npm logout
> Logout of the registry user account.
> Log out of the registry user account.
> See also: `npm login` for logging in.
> More information: <https://docs.npmjs.com/cli/commands/npm-logout>.
- Logout of the registry user account:
- Log out of the registry user account:
`npm logout`
- Logout using a custom registry:
- Log out using a custom registry:
`npm logout --registry={{registry_url}}`