]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/man/man1/npm-adduser.1
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / man / man1 / npm-adduser.1
1 .TH "NPM\-ADDUSER" "1" "October 2016" "" ""
2 .SH "NAME"
3 \fBnpm-adduser\fR \- Add a registry user account
4 .SH SYNOPSIS
5 .P
6 .RS 2
7 .nf
8 npm adduser [\-\-registry=url] [\-\-scope=@orgname] [\-\-always\-auth]
9
10 aliases: login, add\-user
11 .fi
12 .RE
13 .SH DESCRIPTION
14 .P
15 Create or verify a user named \fB<username>\fP in the specified registry, and
16 save the credentials to the \fB\|\.npmrc\fP file\. If no registry is specified,
17 the default registry will be used (see npm help 7 \fBnpm\-config\fP)\.
18 .P
19 The username, password, and email are read in from prompts\.
20 .P
21 To reset your password, go to https://www\.npmjs\.com/forgot
22 .P
23 To change your email address, go to https://www\.npmjs\.com/email\-edit
24 .P
25 You may use this command multiple times with the same user account to
26 authorize on a new machine\.  When authenticating on a new machine,
27 the username, password and email address must all match with
28 your existing record\.
29 .P
30 \fBnpm login\fP is an alias to \fBadduser\fP and behaves exactly the same way\.
31 .SH CONFIGURATION
32 .SS registry
33 .P
34 Default: https://registry\.npmjs\.org/
35 .P
36 The base URL of the npm package registry\. If \fBscope\fP is also specified,
37 this registry will only be used for packages with that scope\. See npm help 7 \fBnpm\-scope\fP\|\.
38 .SS scope
39 .P
40 Default: none
41 .P
42 If specified, the user and login credentials given will be associated
43 with the specified scope\. See npm help 7 \fBnpm\-scope\fP\|\. You can use both at the same time,
44 e\.g\.
45 .P
46 .RS 2
47 .nf
48 npm adduser \-\-registry=http://myregistry\.example\.com \-\-scope=@myco
49 .fi
50 .RE
51 .P
52 This will set a registry for the given scope and login or create a user for
53 that registry at the same time\.
54 .SS always\-auth
55 .P
56 Default: false
57 .P
58 If specified, save configuration indicating that all requests to the given
59 registry should include authorization information\. Useful for private
60 registries\. Can be used with \fB\-\-registry\fP and / or \fB\-\-scope\fP, e\.g\.
61 .P
62 .RS 2
63 .nf
64 npm adduser \-\-registry=http://private\-registry\.example\.com \-\-always\-auth
65 .fi
66 .RE
67 .P
68 This will ensure that all requests to that registry (including for tarballs)
69 include an authorization header\. This setting may be necessary for use with
70 private registries where metadata and package tarballs are stored on hosts with
71 different hostnames\. See \fBalways\-auth\fP in npm help 7 \fBnpm\-config\fP for more details on
72 always\-auth\. Registry\-specific configuration of \fBalways\-auth\fP takes precedence
73 over any global configuration\.
74 .SH SEE ALSO
75 .RS 0
76 .IP \(bu 2
77 npm help 7 registry
78 .IP \(bu 2
79 npm help config
80 .IP \(bu 2
81 npm help 7 config
82 .IP \(bu 2
83 npm help 5 npmrc
84 .IP \(bu 2
85 npm help owner
86 .IP \(bu 2
87 npm help whoami
88
89 .RE
90