From 37a07bd744c5cbe49f2bb801848a798da5b83df6 Mon Sep 17 00:00:00 2001 From: Mehdi Hasan Khan Date: Sat, 10 Aug 2019 12:54:22 +0600 Subject: [PATCH] Add how to install all deps when NODE_ENV=production --- doc/cli/npm-install.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/cli/npm-install.md b/doc/cli/npm-install.md index 4ff4a47cbcf4e..21c9a169087f4 100644 --- a/doc/cli/npm-install.md +++ b/doc/cli/npm-install.md @@ -53,7 +53,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.