table of contents
other versions
- jessie 1.4.21+ds-2
- testing 5.8.0+ds6-3
- stretch-backports 5.8.0+ds6-2~bpo9+1
- unstable 5.8.0+ds6-4
other sections
NPM-CACHE(1) | NPM-CACHE(1) |
NAME¶
npm-cache - Manipulates packages cacheSYNOPSIS¶
npm cache add <tarball file> npm cache add <folder> npm cache add <tarball url> npm cache add <name>@<version> npm cache ls [<path>] npm cache clean [<path>]
DESCRIPTION¶
Used to add, list, or clear the npm cache folder.- add
- Add the specified package to the local cache. 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.
- ls
- Show the data in the cache. Argument is a path to show in the cache folder. Works a bit like the find program, but limited by the depth config.
- clean
- Delete data out of the cache folder. If an argument is provided, then it specifies a subpath to delete. If no argument is provided, then the entire cache is cleared.
DETAILS¶
npm stores cache data in the directory specified in npm config get cache. For each package that is added to the cache, three pieces of information are stored in {cache}/{name}/{version}:- .../package/package.json
- The package.json file, as npm sees it.
- .../package.tgz
- The tarball for that version.
CONFIGURATION¶
cache¶
Default: ~/.npm on Posix, or %AppData%/npm-cache on Windows. The root cache folder.SEE ALSO¶
- •
- npm help folders
- •
- npm help config
- •
- npm help config
- •
- npm help npmrc
- •
- npm help install
- •
- npm help publish
- •
- npm help pack
August 2014 |