Skip to content

Commit 2695e1f

Browse files
authored
docs: npm v9 creates package-lock.json v3 (#6187)
1 parent 962a12e commit 2695e1f

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

docs/lib/content/configuring-npm/package-lock-json.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,9 @@ the npm registry. Lockfiles generated by npm v7 will contain
112112
* No version provided: an "ancient" shrinkwrap file from a version of npm
113113
prior to npm v5.
114114
* `1`: The lockfile version used by npm v5 and v6.
115-
* `2`: The lockfile version used by npm v7, which is backwards compatible
116-
to v1 lockfiles.
117-
* `3`: The lockfile version used by npm v7, _without_ backwards
118-
compatibility affordances. This is used for the hidden lockfile at
119-
`node_modules/.package-lock.json`, and will likely be used in a future
120-
version of npm, once support for npm v6 is no longer relevant.
115+
* `2`: The lockfile version used by npm v7 and v8. Backwards compatible to v1
116+
lockfiles.
117+
* `3`: The lockfile version used by npm v9. Backwards compatible to npm v7.
121118

122119
npm will always attempt to get whatever data it can out of a lockfile, even
123120
if it is not a version that it was designed to support.

0 commit comments

Comments
 (0)