npm adduser
Add a registry user account. More information: https://docs.npmjs.com/cli/v11/npm-adduser.
- Create a new user in the specified registry and save credentials to
.npmrc:
npm adduser --registry
- Log in to a private registry with a specific scope:
npm login --scope --registry
- Log out from a specific scope and remove the auth token:
npm logout --scope
- Create a scoped package during initialization:
npm init --scope
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
