Skip to content

Commit dd03aa0

Browse files
authoredOct 23, 2023
docs: add v9 and above for lockfile version 3 (#6921)
1 parent 94f535b commit dd03aa0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ various purposes:
3636
Both of these files have the same format, and perform similar functions in
3737
the root of a project.
3838

39-
The difference is that `package-lock.json` cannot be published, and it will
39+
The difference is that `package-lock.json` cannot be published, and it will
4040
be ignored if found in any place other than the root project.
4141

4242
In contrast, [npm-shrinkwrap.json](/configuring-npm/npm-shrinkwrap-json) allows
@@ -114,7 +114,7 @@ the npm registry. Lockfiles generated by npm v7 will contain
114114
* `1`: The lockfile version used by npm v5 and v6.
115115
* `2`: The lockfile version used by npm v7 and v8. Backwards compatible to v1
116116
lockfiles.
117-
* `3`: The lockfile version used by npm v9. Backwards compatible to npm v7.
117+
* `3`: The lockfile version used by npm v9 and above. Backwards compatible to npm v7.
118118

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

0 commit comments

Comments
 (0)
Please sign in to comment.