1NPM-ADDUSER(1)                                                  NPM-ADDUSER(1)
2
3
4

NAME

6       npm-adduser - Add a registry user account
7
8   Synopsis
9         npm adduser [--registry=url] [--scope=@orgname] [--auth-type=legacy]
10
11         aliases: login, add-user
12
13       Note: This command is unaware of workspaces.
14
15   Description
16       Create or verify a user named <username> in the specified registry, and
17       save the credentials to the .npmrc file. If no registry  is  specified,
18       the default registry will be used (see npm help config).
19
20       The username, password, and email are read in from prompts.
21
22       To reset your password, go to https://www.npmjs.com/forgot
23
24       To change your email address, go to https://www.npmjs.com/email-edit
25
26       You  may  use this command multiple times with the same user account to
27       authorize on a new machine.  When authenticating on a new machine,  the
28       username,  password and email address must all match with your existing
29       record.
30
31       npm login is an alias to adduser and behaves exactly the same way.
32
33   Configuration
34       <!-- AUTOGENERATED CONFIG DESCRIPTIONS  START  -->  <!--  automatically
35       generated,  do  not edit manually --> <!-- see lib/utils/config/defini‐
36       tions.js -->
37
38   registry
39       • Default: "https://registry.npmjs.org/"
40
41       • Type: URL
42
43
44       The base URL of the npm registry.  <!-- automatically generated, do not
45       edit manually --> <!-- see lib/utils/config/definitions.js -->
46
47
48   scope
49       • Default: the scope of the current project, if any, or ""
50
51       • Type: String
52
53
54       Associate an operation with a scope for a scoped registry.
55
56       Useful when logging in to or out of a private registry:
57
58         # log in, linking the scope to the custom registry
59         npm login --scope=@mycorp --registry=https://registry.mycorp.com
60
61         # log out, removing the link and the auth token
62         npm logout --scope=@mycorp
63
64       This will cause @mycorp to be mapped to the registry for future instal‐
65       lation of packages specified according to the pattern @mycorp/package.
66
67       This will also cause npm init to create a scoped package.
68
69         # accept all defaults, and create a package named "@foo/whatever",
70         # instead of just named "whatever"
71         npm init --scope=@foo --yes
72       <!-- automatically  generated,  do  not  edit  manually  -->  <!--  see
73       lib/utils/config/definitions.js -->
74
75       <!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
76
77
78   See Also
79       • npm help registry
80
81       • npm help config
82
83       • npm help npmrc
84
85       • npm help owner
86
87       • npm help whoami
88
89       • npm help token
90
91       • npm help profile
92
93
94
95
96                                 January 2022                   NPM-ADDUSER(1)
Impressum