From 4a2f551eeb3285f6f200534da33644789715a41a Mon Sep 17 00:00:00 2001 From: Mehdi Hasan Khan Date: Sat, 10 Aug 2019 12:54:22 +0600 Subject: [PATCH] chore(docs): Add how to install all deps when NODE_ENV=production PR-URL: https://github.com/npm/cli/pull/232 Credit: @mugli Close: #232 Reviewed-by: @claudiahdz --- docs/content/cli-commands/npm-install.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/content/cli-commands/npm-install.md b/docs/content/cli-commands/npm-install.md index f785e40922457..cfb96aeedd939 100644 --- a/docs/content/cli-commands/npm-install.md +++ b/docs/content/cli-commands/npm-install.md @@ -62,7 +62,9 @@ after packing it up into a tarball (b). With the `--production` flag (or when the `NODE_ENV` environment variable is set to `production`), npm will not install modules listed in - `devDependencies`. + `devDependencies`. To install all modules listed in both `dependencies` + and `devDependencies` when `NODE_ENV` environment variable is set to `production`, + you can use `--production=false`. > NOTE: The `--production` flag has no particular meaning when adding a dependency to a project.