Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGar <gar+gh@danger.computer>2022-08-17 03:55:19 +0300
committerGitHub <noreply@github.com>2022-08-17 03:55:19 +0300
commitbc66ffa76005c882cc5fd237af87b7ca79375097 (patch)
tree00a3c968a329325e6bd13a344612a5722dde4a1b /docs/content
parent0d4ed0fb1cd86edd827cac0b5367b73bb864a9bf (diff)
docs: update --no-optional to --omit=optional (#5304)
Diffstat (limited to 'docs/content')
-rw-r--r--docs/content/configuring-npm/package-json.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/content/configuring-npm/package-json.md b/docs/content/configuring-npm/package-json.md
index b0231662f..5b4acf187 100644
--- a/docs/content/configuring-npm/package-json.md
+++ b/docs/content/configuring-npm/package-json.md
@@ -873,7 +873,7 @@ be found or fails to install, then you may put it in the
`optionalDependencies` object. This is a map of package name to version or
url, just like the `dependencies` object. The difference is that build
failures do not cause installation to fail. Running `npm install
---no-optional` will prevent these dependencies from being installed.
+--omit=optional` will prevent these dependencies from being installed.
It is still your program's responsibility to handle the lack of the
dependency. For example, something like this: