Welcome to mirror list, hosted at ThFree Co, Russian Federation.

site.1 « future-ideas « man1 - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3018f9e2183956bcbf3c371c3ab84b54e332f8e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
.\" Generated with Ronnjs/v0.1
.\" http://github.com/kapouer/ronnjs/
.
.TH "NPM\-SITE" "1" "November 2010" "" ""
.
.SH "NAME"
\fBnpm-site\fR \-\- Run the npm web site
.
.SH "FUTURE"
This functionality does not yet exist\.
.
.SH "SYNOPSIS"
.
.nf
npm site [ start | stop ]
.
.fi
.
.SH "DESCRIPTION"
This starts up npm in "site" mode\.  The following configs are relevant,
and can either be specified in the \fB\|\.npmrc\fR file, or as command line
options\.
.
.IP "\(bu" 4
userfile:
A file containing the encrypted authorization info for all users\.  If
specified, then this is used for \fBnpm adduser\fR requests
to this registry\.  
.
.IP "\(bu" 4
admin:
A comma\-delimited list of admin users\.  All of these must already be
in the local adduser config\.  If there is no admin, then the site will
not allow remote management\.  All admin usernames must already be
in the userfile, and a userfile must be specified\.
.
.IP "\(bu" 4
listen:
Ports to listen on for WS requests\.  The first number is for http,
the second for https, and the third for secure TCP\.  Set any to "\-",
or omit, to use the default\.
Defaults to "80,443,15443"
.
.IP "\(bu" 4
registry:
If a package is not found, then its contents will be fetched from the
upstream registry, and cached for future retrieval\.
.
.IP
isaacs: Make sure that this does loop\-detection, so that a "ring" of
registries can work as a distributed network\.  Also, once we have
support for checking multiple registries, you could have a distribution
ring that secondarily depends on some other upstream resource\.
.
.IP "" 0
.
.P
The content for the site is stored in the npm cache directory, which is
inside the folder used for the \fBroot\fR setting, at \fB{root}/\.npm/\.cache\fR\|\.
It is organized in a simple hierarchical folder structure corresponding
to the web service URLs that npm uses\.
.
.SH "TCP Server"
The TCP server starts up to support the \fBnpm remote\fR command, if there is
a valid admin userlist\.
.
.SH "NOTE"
This also is what happens when you do \fBnpm start npm\fR\|\.
.
.SH "SEE ALSO"
.
.IP "\(bu" 4
npm\-remote(1)
.
.IP "\(bu" 4
npm\-config(1)
.
.IP "" 0