]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/doc/misc/npm-registry.md
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / doc / misc / npm-registry.md
1 npm-registry(7) -- The JavaScript Package Registry
2 ==================================================
3
4 ## DESCRIPTION
5
6 To resolve packages by name and version, npm talks to a registry website
7 that implements the CommonJS Package Registry specification for reading
8 package info.
9
10 Additionally, npm's package registry implementation supports several
11 write APIs as well, to allow for publishing packages and managing user
12 account information.
13
14 The official public npm registry is at <https://registry.npmjs.org/>.  It
15 is powered by a CouchDB database, of which there is a public mirror at
16 <https://skimdb.npmjs.com/registry>.  The code for the couchapp is
17 available at <https://github.com/npm/npm-registry-couchapp>.
18
19 The registry URL used is determined by the scope of the package (see
20 `npm-scope(7)`). If no scope is specified, the default registry is used, which is
21 supplied by the `registry` config parameter.  See `npm-config(1)`,
22 `npmrc(5)`, and `npm-config(7)` for more on managing npm's configuration.
23
24 ## Can I run my own private registry?
25
26 Yes!
27
28 The easiest way is to replicate the couch database, and use the same (or
29 similar) design doc to implement the APIs.
30
31 If you set up continuous replication from the official CouchDB, and then
32 set your internal CouchDB as the registry config, then you'll be able
33 to read any published packages, in addition to your private ones, and by
34 default will only publish internally.
35
36 If you then want to publish a package for the whole world to see, you can
37 simply override the `--registry` option for that `publish` command.
38
39 ## I don't want my package published in the official registry. It's private.
40
41 Set `"private": true` in your package.json to prevent it from being
42 published at all, or
43 `"publishConfig":{"registry":"http://my-internal-registry.local"}`
44 to force it to be published only to your internal registry.
45
46 See `package.json(5)` for more info on what goes in the package.json file.
47
48 ## Will you replicate from my registry into the public one?
49
50 No.  If you want things to be public, then publish them into the public
51 registry using npm.  What little security there is would be for nought
52 otherwise.
53
54 ## Do I have to use couchdb to build a registry that npm can talk to?
55
56 No, but it's way easier.  Basically, yes, you do, or you have to
57 effectively implement the entire CouchDB API anyway.
58
59 ## Is there a website or something to see package docs and such?
60
61 Yes, head over to <https://npmjs.com/>
62
63 ## SEE ALSO
64
65 * npm-config(1)
66 * npm-config(7)
67 * npmrc(5)
68 * npm-developers(7)
69 * npm-disputes(7)