Skip to content

Commit bc66ffa

Browse files
authored
docs: update --no-optional to --omit=optional (#5304)
1 parent 0d4ed0f commit bc66ffa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ be found or fails to install, then you may put it in the
873873
`optionalDependencies` object. This is a map of package name to version or
874874
url, just like the `dependencies` object. The difference is that build
875875
failures do not cause installation to fail. Running `npm install
876-
--no-optional` will prevent these dependencies from being installed.
876+
--omit=optional` will prevent these dependencies from being installed.
877877

878878
It is still your program's responsibility to handle the lack of the
879879
dependency. For example, something like this:

0 commit comments

Comments
 (0)