• Home
  • Raw
  • Download

Lines Matching full:cache

3 title: npm-cache
4 description: Manipulates packages cache
7 # npm-cache(1)
9 ## Manipulates packages cache
14 npm cache add <tarball file>
15 npm cache add <folder>
16 npm cache add <tarball url>
17 npm cache add <name>@<version>
19 npm cache clean [<path>]
20 aliases: npm cache clear, npm cache rm
22 npm cache verify
27 Used to add, list, or clean the npm cache folder.
30 Add the specified package to the local cache. This command is primarily
32 add data to the local installation cache explicitly.
35 Delete all data out of the cache folder.
38 Verify the contents of the cache folder, garbage collecting any unneeded data,
39 and verifying the integrity of the cache index and all cached data.
43 npm stores cache data in an opaque directory within the configured `cache`,
44 named `_cacache`. This directory is a `cacache`-based content-addressable cache
49 All data that passes through the cache is fully verified for integrity on both
50 insertion and extraction. Cache corruption will either trigger an error, or
52 automatically. For this reason, it should never be necessary to clear the cache
57 the contents of this cache. In order to access it, `cacache` must be used
60 npm will not remove data by itself: the cache will grow as new packages are
63 ### A note about the cache's design argument
65 The npm cache is strictly a cache: it should not be relied upon as a persistent
68 delete corrupted contents. The primary guarantee that the cache makes is that,
71 To run an offline verification of existing cache contents, use `npm cache
76 #### cache subsubsection
78 Default: `~/.npm` on Posix, or `%AppData%/npm-cache` on Windows.
80 The root cache folder.