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

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Meagher <evan.meagher@gmail.com>2010-11-30 07:44:27 +0300
committerisaacs <i@izs.me>2010-12-03 01:33:19 +0300
commitec15d6a2fd31714b8bcb325fbb87be00c94ee624 (patch)
tree5d487c2a950cdece3847332dfbd199089d361ef6 /doc/cache.md
parent32fcc3e104ad3e251db2a793eaafbcd2016950ac (diff)
Standardize synopsis format in docs.
Diffstat (limited to 'doc/cache.md')
-rw-r--r--doc/cache.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/cache.md b/doc/cache.md
index 38b2993e9..2034aac78 100644
--- a/doc/cache.md
+++ b/doc/cache.md
@@ -6,11 +6,11 @@ npm-cache(1) -- install a package
npm cache add <tarball file>
npm cache add <folder>
npm cache add <tarball url>
- npm cache add <name> <version>
-
+ npm cache add <name>@<version>
+
npm cache ls [<path>]
-
- npm cache clean [<pkg> [<version>]]
+
+ npm cache clean [<name>[@<version>]]
## DESCRIPTION
@@ -18,7 +18,7 @@ npm-cache(1) -- install a package
Access the local cache of package data. This command is primarily
intended to be used internally by npm, but it can provide a way to
add data to the local installation cache explicitly.
-
+
If two arguments are provided, then npm will fetch the data from the
registry. This allows npm to use the filesystem as a local proxy to
the registry.
@@ -32,7 +32,7 @@ npm-cache(1) -- install a package
Delete data out of the cache for a specific package and version, all
versions of a package, or all data for all packages, depending on the
arguments supplied.
-
+
This can be used if invalid data gets into the cache.
## DETAILS