Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

release: npm@5.0.0 #16244

Closed
wants to merge 222 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
222 commits
Select commit Hold shift + click to select a range
7ecd310
npm-registry-client@8.3.0
zkat Apr 27, 2017
ee23f43
cli: replace cli.js with bin/npm-cli.js and remove cli.js (#12096)
watilde Apr 4, 2017
54b2ab5
utils: remove `lib/utils/rename.js` (#16204)
watilde Apr 4, 2017
4f5b968
hosted-git-info@2.4.2
iarna Apr 13, 2017
887d9e8
init-package-json@1.10.1
iarna Apr 14, 2017
f7cf4e4
npm-package-arg@5.0.1
iarna Apr 12, 2017
e5f4a98
realize-package-specifier@REMOVED
iarna Apr 12, 2017
fce1a6c
normalize-git-url@REMOVED
iarna Apr 12, 2017
319f861
asap@REMOVED
iarna Apr 13, 2017
cbaf1c9
*: Patch to support npm-package-arg@5
iarna Apr 12, 2017
c8b6685
pacote@2.7.4
zkat Apr 28, 2017
b1d6b6f
install: Replace post install module list with summary report
iarna Mar 1, 2017
cc7b59e
install: Print warnings before summary
iarna Apr 17, 2017
cedb308
ls: Remove blank lines from `npm ls --parseable`
iarna Apr 19, 2017
b25cd51
dedupe: find-dupes should output _something_
iarna Apr 18, 2017
774539b
build: Only output symlink info when doing human output
iarna Apr 19, 2017
37d3a1b
tests: Update tests to support new output formats
iarna Apr 18, 2017
cf37c93
test: fixing standard fails
zkat Apr 22, 2017
cdbae21
install/deps: Remove needlessly async calls to npa
iarna Apr 23, 2017
e4508c4
fix(save): calculate the version to save for new registry deps (#16414)
zkat Apr 23, 2017
8a585ab
install: Fetch as much registry metadata we can at once (#16422)
iarna Apr 23, 2017
9c163a8
feat(install): use pacote for package downloads
zkat Apr 29, 2017
91a5522
fix(tests): getting test suite working again
zkat Apr 28, 2017
f8cb463
fix(shrinkwrap): make sure resolved is there
zkat Apr 29, 2017
0ff0bb9
bring stuff closer to old version
zkat Apr 29, 2017
a877e9b
refactor(shrinkwrap): refactor and promisify inflate-shrinkwrap.js
zkat Apr 29, 2017
151d606
fix(shrinkwrap): include and use bundle information in shrinkwrap
zkat Apr 30, 2017
6197ec1
fix(noise): stop the gentlyRm spam omg
zkat Apr 30, 2017
f18fde3
fix(tests): get.js is no longer used for package downloads and is not…
zkat May 1, 2017
e854b4e
fix(tests): update retry-on-stale-cache to use --prefer-offline
zkat May 1, 2017
99c23a3
fix(test): updated splat-with-only-prerelease-latest test
zkat May 1, 2017
c0d73db
feat(opts): save installs by default
zkat May 1, 2017
35d0ea8
feat(logger): added `notice` loglevel
zkat May 2, 2017
ba50bdb
feat(lockfile): add package-lock.json support
zkat May 2, 2017
ea1f220
FLOATING PATCH: directly patch fstream-npm
zkat May 2, 2017
34f24c8
feat(clean): hide npm cache clean behind --force
zkat May 2, 2017
1275e07
fix(cache): reject any attempt to remove individual packages
zkat May 2, 2017
af71102
meta: dogfood package-lock.json
zkat May 2, 2017
81c804c
fix(extract): cut down on EBUNDLEOVERRIDE spam
zkat May 3, 2017
52cfc76
fix(shrinkwrap): should still work if lockfile has no deps
zkat May 3, 2017
f28ed1a
refactor(extract): covert extract.js to Promises
zkat May 3, 2017
7faf8ef
feat(shrinkwrap): always shrinkwrap devDeps, even if only devDeps are…
zkat May 3, 2017
86a591f
fix(shrinkwrap): force installs to use the shrinkwrap tree
iarna May 3, 2017
6814a01
shrinkwrap: missed more spots about shrinkwrap
zkat May 3, 2017
6e3f417
cleanup: fix standard bits
zkat May 3, 2017
90d4c2a
tests: Expect package-locks
zkat May 3, 2017
8a374d5
test: disable shrinkwrap for self-install test
zkat May 3, 2017
49b0465
test: npm it test was clobbering package-lock.json
zkat May 3, 2017
134d543
fix(shrinkwrap): write lockfile to the tree root
zkat May 4, 2017
c3a1362
fix(save): pay attention to save type
zkat May 4, 2017
3b7a1e7
save: Always update even if nothing changed
zkat May 4, 2017
c28c4a6
pacote@2.7.5
zkat May 4, 2017
fda865a
fix(extract): stop trusting package.json in the tarball
zkat May 5, 2017
b73b0bd
fix(version): properly detect whether lockfile or shrinkwrap
zkat May 5, 2017
e0a7891
pacote@2.7.6
zkat May 5, 2017
13d827b
npmlog@4.1.0
zkat May 5, 2017
f45b430
feat(log): moved new loglevels to npmlog proper
zkat May 5, 2017
d26949a
feat(git): git repos with prepare scripts are now built on install
zkat May 5, 2017
cdc2f60
detect-indent@5.0.0
zkat May 6, 2017
64b67f0
feat(indent): package.json and package locks preserve indentaton
zkat May 6, 2017
10727c4
fix(shrinkwrap): npm shrinkwrap should create a shrinkwrap by default…
zkat May 6, 2017
74d146e
fix(tests): shrinkwrap always includes the full tree
zkat May 6, 2017
899f1b3
fix(test): dev deps are included in shrinkwraps by default now
zkat May 6, 2017
5e8bafa
pacote@2.7.7
zkat May 6, 2017
c24d27a
fix(git): integrity hash was failing sometimes
zkat May 7, 2017
c84f09a
fix(tests): removing obsolete shrinwkrap tests
zkat May 7, 2017
6d61f3d
fix(deps): make sure to catch errors here
zkat May 7, 2017
1013658
fix(shrinkwrap): return shrinkwrap data even if renaming
zkat May 7, 2017
21d58d2
fix(tests): update override-bundled
zkat May 7, 2017
fac2e48
fix(unpublish): stop clearing caches for now
zkat May 7, 2017
23c4cb8
tests: move pending tests out of the way
zkat May 7, 2017
45fa23d
fixup: standard fixes
zkat May 7, 2017
37f7e4c
test: no need to call shrinkwrap
zkat May 7, 2017
8929797
deps: upgrade transitive deps
zkat May 7, 2017
87281ee
decompose-actions: Remove npat test actions
iarna Apr 27, 2017
21719d6
error-message: Stop gaslighting our users with "this is probably your…
iarna May 3, 2017
e563d61
spec: Describe local specifiers
iarna Feb 28, 2017
d61b65d
common-tap: Make environment objects immutable
iarna May 3, 2017
c0a30c0
test: Spec tests for local specifiers
iarna Apr 6, 2017
918f671
filespecs: Implement new file: specifier behavior
iarna Apr 27, 2017
86fcebe
fix(bundles): use versions for bundleDeps
zkat May 9, 2017
2fca9d7
fix(update-package-json): crasher when devDeps wasn't set at all
zkat May 9, 2017
ebf05ef
inflate-shrinkwrap: Remove last of support for partial shrinkwraps
iarna May 9, 2017
e3e9133
install: Don't show removed or failed modules in debugging trees
iarna May 9, 2017
7f7653a
install: Still save changes when node_modules started out empty
iarna May 9, 2017
8cea258
meta: regenerate package lock
zkat May 9, 2017
4f2a0fb
inflate: Integrity matches mean things are the same
iarna May 9, 2017
d564ada
shrinkwrap: Only save _resolved to the shrinkwrap if there is one
iarna May 9, 2017
5579e84
inflate-shrinkwrap: Don't recompute shrinkwrap values
iarna May 9, 2017
2bd5a5f
inflate-shrinkwrap: Allow matching of sw.version and resolved as that…
iarna May 9, 2017
9839793
shrinkwrap: When saving non-registry deps, handle missing _resolved
iarna May 9, 2017
4baece4
shrinkwrap: Don't include integrity for git deps
iarna May 9, 2017
fd30898
pacote@2.7.9
iarna May 9, 2017
3b89dfc
finalize: If we go to create a link, its ok if its already there
iarna May 9, 2017
e604127
decompose-actions: Don't finalize bundled symlinks
iarna May 9, 2017
a7299a4
get-requested: Resolve using the correct root path
iarna May 9, 2017
909943c
inflate-bundled: Leave realpaths alone for inflated links
iarna May 9, 2017
1e6cbc1
inflate-shrinkwrap: Check link equivalency for shrinkwraped file specs
iarna May 9, 2017
6c8f95c
common-tap: Make common.npm support returning promsies
iarna May 9, 2017
c71b480
test: rewrite bundled-dependencies-nonarray to not use link deps
iarna May 9, 2017
8639aa6
fetch-package-metadata: Reduce spam to error log on errors
iarna May 10, 2017
2d7b23e
node: Make sure we _really_ only add new keys to the top level
iarna May 10, 2017
adc8147
npm-registry-couchapp@2.6.13
iarna May 10, 2017
1e5fc2c
test: tree-style update to not use links
iarna May 10, 2017
1915c41
test: uninstall-save now passes
iarna May 10, 2017
89e98b0
tests: Categorize failing-for-npm5 tests
iarna May 10, 2017
db23dcf
test: Move back passing tests
iarna May 10, 2017
fda9696
travis: ditch npm5 specific stuff
iarna May 10, 2017
ecfa371
doctor: Make access checks v4 compatible
iarna May 10, 2017
9513cb2
version: Fix on v4
iarna May 10, 2017
db05647
tests: Filter run-script env
iarna May 10, 2017
0069145
test: fix spec-local-specifiers under nyc
iarna May 10, 2017
950ed58
node-gyp@3.6.1
zkat May 9, 2017
ef026e9
meta: standard fixes
zkat May 10, 2017
fe469a7
test: tagged-version-matching
iarna May 10, 2017
5650a6d
test: shrinkwrap-version-match
iarna May 10, 2017
38e60f9
error-message: Remove last remaining "not a bug" error message
iarna May 10, 2017
031b7b7
shrinkwrap: Make API always return the shrinkwrap
iarna May 10, 2017
9215148
test: tests that pass w/ shrinkwrap API fix
iarna May 10, 2017
3d8e8de
fix(install): tree is null sometimes
zkat May 11, 2017
d3dc69b
finalize: Don't nuke symlink destinations pls
iarna May 10, 2017
e02601c
finalize: Allow symlinking over paths much like we allow finalizing o…
iarna May 10, 2017
eca4f1f
test: shrinkwrap-nested
iarna May 10, 2017
7f84119
finalize: call next when rolling back symlinks
iarna May 11, 2017
ef18da1
test: prune
iarna May 11, 2017
dd0e2f0
fix(pkg-lock): don't crash if code falls through to semver w/o a version
zkat May 11, 2017
7963e98
feat(shrinkwrap): support registry-switching
zkat May 11, 2017
e6d2eb2
fix(shrinkwrap): reuse sw resolved for diff-registry children
zkat May 11, 2017
37a19c6
fix(save): write a package-lock even if no changes made
zkat May 11, 2017
b97ef35
fix(pkg-lock): refetch metadata for unfamiliar pkgs
zkat May 12, 2017
5c3f9fa
finalize: standard fixes
zkat May 12, 2017
da3ba3c
test: ls-l-depth-0
iarna May 11, 2017
6176c4b
test: ls-depth-cli
iarna May 11, 2017
d95e69f
test: ls-depth-unmet
iarna May 11, 2017
fd9c85a
test: shrinkwrap-default-arg-ver, feature removed
iarna May 11, 2017
9fd6ce6
test: shrinkwrap-local-dependency
iarna May 11, 2017
d23062a
test: install-report-just-installed
iarna May 11, 2017
153f2d7
test: override-bundled
iarna May 12, 2017
86e3de3
test: categorize
iarna May 12, 2017
504bda7
test: gently-rm-overeager
iarna May 12, 2017
6363d61
test: fix dedupe-scoped test
zkat May 12, 2017
69c60ff
test: shrinkwrap-save-dev-with-existing-deps
zkat May 12, 2017
6632460
fix(link): a package is a link if any of its ancestors is a link
zkat May 12, 2017
7df46fe
test: shared-linked
zkat May 12, 2017
1edca81
test: config-meta
zkat May 12, 2017
3d629fb
pacote@2.7.10
zkat May 12, 2017
8cfd94a
fix(shrinkwrap): promisify to fix dropped errors
zkat May 12, 2017
daa7770
pacote@2.7.11
zkat May 12, 2017
d27c181
actions: converted actions.js to use mainly promises
zkat May 12, 2017
5867a4c
finalize: fix some dropped error issues
zkat May 12, 2017
a587f6e
actions: bump concurrent action count
zkat May 12, 2017
a08c371
fstream-npm@1.2.1
zkat May 13, 2017
321d7c8
standard: clean up test directories
zkat May 13, 2017
35e7996
write-file-atomic@2.1.0
zkat May 13, 2017
7b9b568
update-package-json: disable fsync on file write
zkat May 13, 2017
c515146
fix(auth): resolve _resolved with the package name to get auth workin…
zkat May 15, 2017
9f36587
pacote: pass the user-agent through
zkat May 15, 2017
d28af6b
test: install-noargs-dev
iarna May 12, 2017
ebbe7a0
test: categorize add-remote-git-get-resolved
iarna May 12, 2017
3c34282
git-prepare: Fix child process npm run
iarna May 16, 2017
c0a02aa
extract: Stop reading the package.json here
iarna May 16, 2017
42531d6
pacote@2.7.12
zkat May 16, 2017
711f204
pacote: fix typo
zkat May 16, 2017
96532ff
make: stop saving marked-man and prune stuff during build
zkat May 16, 2017
2d346e9
pacote: use the current node + npm to run git installs
zkat May 16, 2017
180e298
feat(shrinkwrap): support extra metadata fields
zkat May 16, 2017
6abf718
shrinkwrap: warn on incompatible lockfile version
zkat May 16, 2017
932888f
test: fix more tests
zkat May 16, 2017
317ae92
shrinkwrap: update packageIntegrity for spec compliance
zkat May 17, 2017
2690121
shrinkwrap: save even with warnings
zkat May 17, 2017
98851f0
shrinkwrap: update createdWith field
zkat May 17, 2017
7d495b4
shrinkwrap: more changes to package lock fields
zkat May 17, 2017
5dea82e
shrinkwrap: even more fixes
zkat May 17, 2017
fd6b2cd
test: disabling lifecycle-signal while coverage issue figured out
zkat May 17, 2017
feb3a80
meta: updated package-lock
zkat May 17, 2017
3c4b14d
test: standard
zkat May 17, 2017
f0a0c0b
shrinkwrap: stop filling in pkginfo.problems
zkat May 17, 2017
2c3db61
docs: documented some new installer features
zkat May 17, 2017
5f20ec9
docs: update package-lock/shrinkwrap documentation
zkat May 18, 2017
2a88478
docs: updated git docs with #semver: support info
zkat May 19, 2017
44bde38
docs: updated npm cache docs
zkat May 19, 2017
38a1c38
commands: add affordance for install
zkat May 19, 2017
1870451
feat(save): fix update and improve experience of moving deps between …
zkat May 20, 2017
634f011
uninstall: When removing direct deps don't remove if also transitive dep
iarna May 20, 2017
ece43c1
cacache@9.2.5
zkat May 23, 2017
7ab6830
pacote@2.7.21
zkat May 23, 2017
7f78c5b
glob@7.1.2
iarna May 26, 2017
c663913
safe-buffer@5.0.1
zkat May 25, 2017
6258cbe
ssri@4.1.3
zkat May 24, 2017
af92d17
fix(perms): pacote.extract does not run scripts. we already have perm…
zkat May 24, 2017
864a4d9
finalize: Make symlinks relative when possible
iarna May 24, 2017
cd7a5d0
fix(shrinkwrap): clarify reuse of sw resolved for diff-registry children
iarna May 24, 2017
0cc5517
install: Run preinstall prior to reading the tree
iarna May 25, 2017
ee97f8b
install-deps: Match symlinked transitive deps correctly
iarna May 25, 2017
de33830
install: call saveRequested even if no changes, to regenerate package…
zkat May 25, 2017
ad5a441
utils/link: Make less race prone
iarna May 22, 2017
5529a23
standard: fix some loose ends
zkat May 25, 2017
30d7906
error-handler: force an exit instead of waiting for tasks
zkat May 25, 2017
8290720
save: use removedChildren instead of removed
zkat May 25, 2017
f17f4e6
uninstall: remove stray console.log
zkat May 25, 2017
3116cfe
install: Make removing packages work w/o package.json
iarna May 25, 2017
5599538
install,uninstall: Disable fake children when installing one mod or u…
iarna May 25, 2017
e6db682
test: modernize uninstall-save
iarna May 25, 2017
1112b9a
uninstall: defer arg clearing till after global dir is filtered
iarna May 25, 2017
f4a6dd5
test: make no-scan-full-global-dir compat w/ class based install/unin…
iarna May 25, 2017
237a1cf
test: extraneous deps in legacy shrinkwraps are not installed
iarna May 25, 2017
3ada941
install: no need to install non-requested deps
iarna May 25, 2017
80202cd
test: gently-rm-linked-module: modernize test
iarna May 25, 2017
4df5934
pkglock: add --no-package-lock option as --no-shrinkwrap alias
zkat May 25, 2017
1ab8c41
pacote: send username/password auth through, too
zkat May 25, 2017
72ce47c
pacote: look for always-auth too
zkat May 25, 2017
4c99147
remove-deps: Update dependencies list even if we're not saving
iarna May 25, 2017
1ea953a
test: gently-rm-linked-module: Cleanup output
iarna May 25, 2017
da7bbb2
install: allow parseable output for nodes w/o paths
iarna May 25, 2017
0d40bf3
ls: Nothing is extraneous without a package.json
iarna May 25, 2017
046f967
pacote: decode password before passing it on
zkat May 25, 2017
a976fa1
pacote: more alwaysAuth logic
zkat May 25, 2017
0d35975
preinstall: Runs in the final dest, not the staging folder
iarna May 25, 2017
db76632
cacache@9.2.5
iarna May 26, 2017
1e938d6
lifecycle: added prepack and postpack (#16725)
zkat May 26, 2017
5529a6f
docs: END OF AN ERA OF CHANGELOGS 😭
zkat May 26, 2017
7903602
doc: update changelog for npm@5.0.0
zkat May 26, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ cache:
- node_modules/tacks
- node_modules/tap
install:
- "node . prune"
- "node . rebuild --depth=0"
- "node . install --ignore-scripts"
- "node . prune"
- "make -j4 doc"
script:
- "node . run tap -- \"test/tap/*.js\" \"test/broken-under-nyc/*.js\""
1,581 changes: 70 additions & 1,511 deletions CHANGELOG.md

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,23 +53,23 @@ latest:
@echo "Installing latest published npm"
@echo "Use 'make install' or 'make link' to install the code"
@echo "in this folder that you're looking at right now."
node cli.js install -g -f npm ${NPMOPTS}
node bin/npm-cli.js install -g -f npm ${NPMOPTS}

install: all
node cli.js install -g -f ${NPMOPTS}
node bin/npm-cli.js install -g -f ${NPMOPTS}

# backwards compat
dev: install

link: uninstall
node cli.js link -f
node bin/npm-cli.js link -f

clean: markedclean marked-manclean doc-clean uninstall
rm -rf npmrc
node cli.js cache clean
node bin/npm-cli.js cache clean

uninstall:
node cli.js rm npm -g -f
node bin/npm-cli.js rm npm -g -f

doc: $(mandocs) $(htmldocs)

Expand Down Expand Up @@ -143,19 +143,19 @@ html/doc/misc/%.html: doc/misc/%.md $(html_docdeps)
marked: node_modules/.bin/marked

node_modules/.bin/marked:
node cli.js install marked --no-global --no-timing
node bin/npm-cli.js install marked --no-global --no-timing --no-save

marked-man: node_modules/.bin/marked-man

node_modules/.bin/marked-man:
node cli.js install marked-man --no-global --no-timing
node bin/npm-cli.js install marked-man --no-global --no-timing --no-save

doc: man

man: $(cli_docs)

test: doc
node cli.js test
node bin/npm-cli.js test

tag:
node bin/npm-cli.js tag npm@$(PUBLISHTAG) latest
Expand All @@ -173,7 +173,7 @@ publish: gitclean ls-ok link doc-clean doc
node bin/npm-cli.js publish --tag=$(PUBLISHTAG)

release: gitclean ls-ok markedclean marked-manclean doc-clean doc
node cli.js prune --production
node bin/npm-cli.js prune --production --no-save
@bash scripts/release.sh

sandwich:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ If you plan on hacking on npm, `make link` is your friend.

If you've got the npm source code, you can also semi-permanently set
arbitrary config keys using the `./configure --key=val ...`, and then
run npm commands by doing `node cli.js <command> <args>`. (This is helpful
run npm commands by doing `node bin/npm-cli.js <command> <args>`. (This is helpful
for testing, or running stuff without actually installing npm itself.)

## Windows Install or Upgrade
Expand Down
1,566 changes: 1,566 additions & 0 deletions changelogs/CHANGELOG-4.md

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions cli.js

This file was deleted.

60 changes: 36 additions & 24 deletions doc/cli/npm-cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ npm-cache(1) -- Manipulates packages cache
npm cache add <tarball url>
npm cache add <name>@<version>

npm cache ls [<path>]

npm cache clean [<path>]
aliases: npm cache clear, npm cache rm

npm cache verify

## DESCRIPTION

Used to add, list, or clean the npm cache folder.
Expand All @@ -22,35 +22,45 @@ Used to add, list, or clean the npm cache folder.
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 deleted.
Delete all data out of the cache folder.

* 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.

## 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}`:
npm stores cache data in an opaque directory within the configured `cache`,
named `_cacache`. This directory is a `cacache`-based content-addressable cache
that stores all http request data as well as other package-related data. This
directory is primarily accessed through `pacote`, the library responsible for
all package fetching as of npm@5.

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 `pacote` 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 `clean` now requires
`--force` to run.

There is currently no method exposed through npm to inspect or directly manage
the contents of this cache. In order to access it, `cacache` must be used
directly.

npm will not remove data by itself: the cache will grow as new packages are
installed.

* .../package/package.json:
The package.json file, as npm sees it.
* .../package.tgz:
The tarball for that version.
## A NOTE ABOUT THE CACHE'S DESIGN

Additionally, whenever a registry request is made, a `.cache.json` file
is placed at the corresponding URI, to store the ETag and the requested
data. This is stored in `{cache}/{hostname}/{path}/.cache.json`.
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.

Commands that make non-essential registry requests (such as `search` and
`view`, or the completion scripts) generally specify a minimum timeout.
If the `.cache.json` file is younger than the specified timeout, then
they do not make an HTTP request to the registry.
To run an offline verification of existing cache contents, use `npm cache
verify`.

## CONFIGURATION

Expand All @@ -69,3 +79,5 @@ The root cache folder.
* npm-install(1)
* npm-publish(1)
* npm-pack(1)
* https://npm.im/cacache
* https://npm.im/pacote
Loading