/
usr
/
local
/
lib
/
node_modules
/
npm
/
man
/
man1
/
/usr/local/lib/node_modules/npm/man/man1
mkdir
upload
Name
Size
Mode
Actions
npm-access.1
3270
0644
edit
dl
rm
npm-adduser.1
2207
0644
edit
dl
rm
npm-audit.1
18066
0644
edit
dl
rm
npm-bugs.1
3390
0644
edit
dl
rm
npm-cache.1
3695
0644
edit
dl
rm
npm-ci.1
10884
0644
edit
dl
rm
npm-completion.1
999
0644
edit
dl
rm
npm-config.1
4646
0644
edit
dl
rm
npm-dedupe.1
10565
0644
edit
dl
rm
npm-deprecate.1
2379
0644
edit
dl
rm
npm-diff.1
9781
0644
edit
dl
rm
npm-dist-tag.1
5646
0644
edit
dl
rm
npm-docs.1
3372
0644
edit
dl
rm
npm-doctor.1
5374
0644
edit
dl
rm
npm-edit.1
1190
0644
edit
dl
rm
npm-exec.1
12510
0644
edit
dl
rm
npm-explain.1
2939
0644
edit
dl
rm
npm-explore.1
1091
0644
edit
dl
rm
npm-find-dupes.1
7586
0644
edit
dl
rm
npm-fund.1
4073
0644
edit
dl
rm
npm-get.1
546
0644
edit
dl
rm
npm-help-search.1
869
0644
edit
dl
rm
npm-help.1
1101
0644
edit
dl
rm
npm-init.1
11590
0644
edit
dl
rm
npm-install-ci-test.1
9023
0644
edit
dl
rm
npm-install-test.1
13086
0644
edit
dl
rm
npm-install.1
31718
0644
edit
dl
rm
npm-link.1
13653
0644
edit
dl
rm
npm-ll.1
6591
0644
edit
dl
rm
npm-login.1
2558
0644
edit
dl
rm
npm-logout.1
1889
0644
edit
dl
rm
npm-ls.1
7964
0644
edit
dl
rm
npm-org.1
2312
0644
edit
dl
rm
npm-outdated.1
7759
0644
edit
dl
rm
npm-owner.1
3365
0644
edit
dl
rm
npm-pack.1
4326
0644
edit
dl
rm
npm-ping.1
851
0644
edit
dl
rm
npm-pkg.1
8722
0644
edit
dl
rm
npm-prefix.1
1306
0644
edit
dl
rm
npm-profile.1
3423
0644
edit
dl
rm
npm-prune.1
6453
0644
edit
dl
rm
npm-publish.1
8842
0644
edit
dl
rm
npm-query.1
7688
0644
edit
dl
rm
npm-rebuild.1
5659
0644
edit
dl
rm
npm-repo.1
3154
0644
edit
dl
rm
npm-restart.1
1690
0644
edit
dl
rm
npm-root.1
1196
0644
edit
dl
rm
npm-run.1
8383
0644
edit
dl
rm
npm-sbom.1
8999
0644
edit
dl
rm
npm-search.1
4067
0644
edit
dl
rm
npm-set.1
1632
0644
edit
dl
rm
npm-shrinkwrap.1
999
0644
edit
dl
rm
npm-star.1
1809
0644
edit
dl
rm
npm-stars.1
797
0644
edit
dl
rm
npm-start.1
1824
0644
edit
dl
rm
npm-stop.1
1454
0644
edit
dl
rm
npm-team.1
4505
0644
edit
dl
rm
npm-test.1
1367
0644
edit
dl
rm
npm-token.1
5522
0644
edit
dl
rm
npm-trust.1
10532
0644
edit
dl
rm
npm-undeprecate.1
1579
0644
edit
dl
rm
npm-uninstall.1
4988
0644
edit
dl
rm
npm-unpublish.1
4902
0644
edit
dl
rm
npm-unstar.1
1660
0644
edit
dl
rm
npm-update.1
14461
0644
edit
dl
rm
npm-version.1
9064
0644
edit
dl
rm
npm-view.1
8076
0644
edit
dl
rm
npm-whoami.1
875
0644
edit
dl
rm
npm.1
5968
0644
edit
dl
rm
npx.1
6865
0644
edit
dl
rm
Edit:
/usr/local/lib/node_modules/npm/man/man1/npm-cache.1
(3695B)
.TH "NPM-CACHE" "1" "March 2026" "NPM@11.12.0" "" .SH "NAME" \fBnpm-cache\fR - Manipulates packages cache .SS "Synopsis" .P .RS 2 .nf npm cache add <package-spec> npm cache clean \[lB]<key>\[rB] npm cache ls \[lB]<name>@<version>\[rB] npm cache verify npm cache npx ls npm cache npx rm \[lB]<key>...\[rB] npm cache npx info <key>... .fi .RE .P Note: This command is unaware of workspaces. .SS "Description" .P Used to add, list, or clean the \fBnpm cache\fR folder. Also used to view info about entries in the \fBnpm exec\fR (aka \fBnpx\fR) cache folder. .SS "\fBnpm cache\fR" .RS 0 .IP \(bu 4 add: Add the specified packages 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. .IP \(bu 4 clean: Delete a single entry or all entries out of the cache folder. Note that this is typically unnecessary, as npm's cache is self-healing and resistant to data corruption issues. .IP \(bu 4 ls: List given entries or all entries in the local cache. .IP \(bu 4 verify: Verify the contents of the cache folder, garbage collecting any unneeded data, and verifying the integrity of the cache index and all cached data. .RE 0 .SS "\fBnpm cache npx\fR" .RS 0 .IP \(bu 4 ls: List all entries in the npx cache. .IP \(bu 4 rm: Remove given entries or all entries from the npx cache. .IP \(bu 4 info: Get detailed information about given entries in the npx cache. .RE 0 .SS "Details" .P npm stores cache data in an opaque directory within the configured \fBcache\fR, named \fB_cacache\fR. This directory is a \fB\[rs]fBcacache\[rs]fR\fR \fI\(lahttp://npm.im/cacache\(ra\fR-based content-addressable cache that stores all http request data as well as other package-related data. This directory is primarily accessed through \fBpacote\fR, the library responsible for all package fetching as of npm@5. .P All data that passes through the cache is fully verified for integrity on both insertion and extraction. Cache corruption will either trigger an error, or signal to \fBpacote\fR that the data must be refetched, which it will do automatically. For this reason, it should never be necessary to clear the cache for any reason other than reclaiming disk space, thus why \fBclean\fR now requires \fB--force\fR to run. .P There is currently no method exposed through npm to inspect or directly manage the contents of this cache. In order to access it, \fBcacache\fR must be used directly. .P npm will not remove data by itself: the cache will grow as new packages are installed. .SS "A note about the cache's design" .P The npm cache is strictly a cache: it should not be relied upon as a persistent and reliable data store for package data. npm makes no guarantee that a previously-cached piece of data will be available later, and will automatically delete corrupted contents. The primary guarantee that the cache makes is that, if it does return data, that data will be exactly the data that was inserted. .P To run an offline verification of existing cache contents, use \fBnpm cache verify\fR. .SS "Configuration" .SS "\fBcache\fR" .RS 0 .IP \(bu 4 Default: Windows: \fB%LocalAppData%\[rs]npm-cache\fR, Posix: \fB~/.npm\fR .IP \(bu 4 Type: Path .RE 0 .P The location of npm's cache directory. .SS "See Also" .RS 0 .IP \(bu 4 npm help "package spec" .IP \(bu 4 npm help folders .IP \(bu 4 npm help config .IP \(bu 4 npm help npmrc .IP \(bu 4 npm help install .IP \(bu 4 npm help publish .IP \(bu 4 npm help pack .IP \(bu 4 npm help exec .IP \(bu 4 https://npm.im/cacache .IP \(bu 4 https://npm.im/pacote .IP \(bu 4 https://npm.im/@npmcli/arborist .IP \(bu 4 https://npm.im/make-fetch-happen .RE 0
Save
cmd:
run