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
path: root/doc
diff options
context:
space:
mode:
authorDaijiro Wachi <daijiro.wachi@gmail.com>2015-10-03 17:23:07 +0300
committerRebecca Turner <me@re-becca.org>2015-10-09 02:24:37 +0300
commit3c44763b40f3e93978c10f6d2e6c60dd2feca51d (patch)
treead6bad912935aee3792f481c0e7227c31a3273e4 /doc
parent7e6e0079a164968c61867b2ae62e2ee84f9a1961 (diff)
install: Update --only option to install only the argument env regardless of the NODE_ENV.
The following is the condition of setting the value of the development / production option. npm install + dev: true + prod: true --only=dev + dev: true + prod: false --only=prod || NODE_ENV=production + dev: false + prod: true PR-URL: https://github.com/npm/npm/pull/9835 Fixes: #9463
Diffstat (limited to 'doc')
-rw-r--r--doc/cli/npm-install.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/cli/npm-install.md b/doc/cli/npm-install.md
index 44bfdd902..d8cbcb481 100644
--- a/doc/cli/npm-install.md
+++ b/doc/cli/npm-install.md
@@ -273,7 +273,7 @@ The `--nodedir=/path/to/node/source` argument will allow npm to find the
node source code so that npm can compile native modules.
The `--only={prod[uction]|dev[elopment]}` argument will cause either only
-`devDependencies` or only non-`devDependencies` to be installed.
+`devDependencies` or only non-`devDependencies` to be installed regardless of the `NODE_ENV`.
See `npm-config(7)`. Many of the configuration params have some
effect on installation, since that's most of what npm does.