Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 71 lines (70 sloc) 1.683 kb
f2ccd17 @isaacs Use ronnjs instead of the ronn rubygem to build docs
isaacs authored
1 .\" Generated with Ronnjs/v0.1
2 .\" http://github.com/kapouer/ronnjs/
0019443 @isaacs Add the cache command and documentation.
isaacs authored
3 .
2881227 @isaacs make doc
isaacs authored
4 .TH "NPM\-CACHE" "1" "November 2010" "" ""
0019443 @isaacs Add the cache command and documentation.
isaacs authored
5 .
6 .SH "NAME"
f2ccd17 @isaacs Use ronnjs instead of the ronn rubygem to build docs
isaacs authored
7 \fBnpm-cache\fR \-\- install a package
0019443 @isaacs Add the cache command and documentation.
isaacs authored
8 .
9 .SH "SYNOPSIS"
10 .
11 .nf
12 npm cache add <tarball file>
13 npm cache add <folder>
14 npm cache add <tarball url>
ec15d6a @evnm Standardize synopsis format in docs.
evnm authored
15 npm cache add <name>@<version>
0019443 @isaacs Add the cache command and documentation.
isaacs authored
16 npm cache ls [<path>]
ec15d6a @evnm Standardize synopsis format in docs.
evnm authored
17 npm cache clean [<name>[@<version>]]
0019443 @isaacs Add the cache command and documentation.
isaacs authored
18 .
19 .fi
20 .
21 .SH "DESCRIPTION"
22 .
f2ccd17 @isaacs Use ronnjs instead of the ronn rubygem to build docs
isaacs authored
23 .IP "\(bu" 4
24 add:
25 Access the local cache of package data\. This command is primarily
26 intended to be used internally by npm, but it can provide a way to
27 add data to the local installation cache explicitly\.
0019443 @isaacs Add the cache command and documentation.
isaacs authored
28 .
29 .IP
f2ccd17 @isaacs Use ronnjs instead of the ronn rubygem to build docs
isaacs authored
30 If two arguments are provided, then npm will fetch the data from the
31 registry\. This allows npm to use the filesystem as a local proxy to
32 the registry\.
33 .
34 .IP "\(bu" 4
35 ls:
36 Show the data in the cache\. Additional arguments are joined together
37 in a path\-like fashion, but something like \fBnpm cache ls npm/0\.1\.5\fR is
38 acceptable as well\.
39 .
40 .IP "\(bu" 4
41 clean:
42 Delete data out of the cache for a specific package and version, all
43 versions of a package, or all data for all packages, depending on the
44 arguments supplied\.
0019443 @isaacs Add the cache command and documentation.
isaacs authored
45 .
46 .IP
e937a72 @isaacs Update all man pages using new version of ronn
isaacs authored
47 This can be used if invalid data gets into the cache\.
0019443 @isaacs Add the cache command and documentation.
isaacs authored
48 .
f2ccd17 @isaacs Use ronnjs instead of the ronn rubygem to build docs
isaacs authored
49 .IP "" 0
50 .
0019443 @isaacs Add the cache command and documentation.
isaacs authored
51 .SH "DETAILS"
f2ccd17 @isaacs Use ronnjs instead of the ronn rubygem to build docs
isaacs authored
52 npm stores data for a version of a package in \fB$ROOT/\.npm/\.cache/<name>/<version>\fR\|\. Three pieces of data are stored
53 in this folder:
0019443 @isaacs Add the cache command and documentation.
isaacs authored
54 .
f2ccd17 @isaacs Use ronnjs instead of the ronn rubygem to build docs
isaacs authored
55 .IP "\(bu" 4
56 package/:
e937a72 @isaacs Update all man pages using new version of ronn
isaacs authored
57 A folder containing the package contents as they appear in the tarball\.
0019443 @isaacs Add the cache command and documentation.
isaacs authored
58 .
f2ccd17 @isaacs Use ronnjs instead of the ronn rubygem to build docs
isaacs authored
59 .IP "\(bu" 4
60 package\.json:
e937a72 @isaacs Update all man pages using new version of ronn
isaacs authored
61 The package\.json file, as npm sees it, with overlays applied and a _id attribute\.
0019443 @isaacs Add the cache command and documentation.
isaacs authored
62 .
f2ccd17 @isaacs Use ronnjs instead of the ronn rubygem to build docs
isaacs authored
63 .IP "\(bu" 4
64 package\.tgz:
e937a72 @isaacs Update all man pages using new version of ronn
isaacs authored
65 The tarball for that version\.
0019443 @isaacs Add the cache command and documentation.
isaacs authored
66 .
f2ccd17 @isaacs Use ronnjs instead of the ronn rubygem to build docs
isaacs authored
67 .IP "" 0
68 .
0019443 @isaacs Add the cache command and documentation.
isaacs authored
69 .SH "HISTORY"
e937a72 @isaacs Update all man pages using new version of ronn
isaacs authored
70 Added in npm version 0\.1\.6
Something went wrong with that request. Please try again.