mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-09-21 04:36:49 +08:00
* *: remove usage of "foobar" * mlr: update example * Apply suggestions from code review Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com> * Update pages/common/npm-adduser.md Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> --------- Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com> Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
573 B
573 B
npm adduser
Add a registry user account. More information: https://docs.npmjs.com/cli/npm-adduser.
- Create a new user in the specified registry and save credentials to
.npmrc:
npm adduser --registry {{registry_url}}
- Log in to a private registry with a specific scope:
npm login --scope {{@organization}} --registry {{https://registry.example.com}}
- Log out from a specific scope and remove the auth token:
npm logout --scope {{@organization}}
- Create a scoped package during initialization:
npm init --scope {{@organization}} {{[-y|--yes]}}