Skip to content

Commit 1298530

Browse files
Max Blackowlstronaut
authored andcommitted
docs: clarify version field can be omitted in package-lock
1 parent 090b6ca commit 1298530

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ npm v7 ignores this section entirely if a `packages` section is present, but doe
136136
Dependency objects have the following fields:
137137

138138
* version: a specifier that varies depending on the nature of the package, and is usable in fetching a new copy of it.
139+
Note that for peer dependencies that are not installed, or optional dependencies that are not installed, this field may be omitted.
139140

140141
* bundled dependencies: Regardless of source, this is a version number that is purely for informational purposes.
141142
* registry sources: This is a version number.

0 commit comments

Comments
 (0)