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:
authorJakub Holy <jakubholy@jakubholy.net>2017-09-01 15:30:08 +0300
committerRebecca Turner <me@re-becca.org>2017-09-14 21:44:07 +0300
commite5aedcd82af81fa9e222f9210f6f890c72a18dd3 (patch)
tree37d0bbd11102bb32735cbd6b67b73f9cffe78634
parentb2ab6f43b8ae645134238acd8dd3083e5ba8846e (diff)
doc: In npm-config, note that env vars use _ in place of -.
PR-URL: https://github.com/npm/npm/pull/18372 Credit: @jakubholynet Reviewed-By: @iarna
-rw-r--r--doc/misc/npm-config.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/misc/npm-config.md b/doc/misc/npm-config.md
index dcfe8bdbd..30ea578f0 100644
--- a/doc/misc/npm-config.md
+++ b/doc/misc/npm-config.md
@@ -31,6 +31,9 @@ npm will set its own environment variables and Node will prefer
those lowercase versions over any uppercase ones that you might set.
For details see [this issue](https://github.com/npm/npm/issues/14528).
+Notice that you need to use underscores instead of dashes, so `--allow-same-version`
+would become `npm_config_allow_same_version=true`.
+
### npmrc Files
The four relevant files are: