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:
authorJason Karns <jason.karns@gmail.com>2016-07-26 21:48:31 +0300
committerKat Marchán <kzm@sykosomatic.org>2016-09-09 00:53:10 +0300
commitb82fd838edbfff5d2833a62f6d8ae8ea2df5a1f2 (patch)
treed8850d7482beede416eab20535589de52a209960 /doc
parent116b6c60a174ea0cc49e4d62717e4e26175b6534 (diff)
doc: per-user config file isn't hardcoded
Document that the per-user config file respects the `$NPM_CONFIG_USERCONFIG` env var, defaulting to ~/.npmrc PR-URL: https://github.com/npm/npm/pull/13493 Credit: @jasonkarns Reviewed-By: @iarna
Diffstat (limited to 'doc')
-rw-r--r--doc/misc/npm-config.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/misc/npm-config.md b/doc/misc/npm-config.md
index 764555ea4..4633269bf 100644
--- a/doc/misc/npm-config.md
+++ b/doc/misc/npm-config.md
@@ -27,7 +27,7 @@ same.
The four relevant files are:
* per-project config file (/path/to/my/project/.npmrc)
-* per-user config file (~/.npmrc)
+* per-user config file (${NPM_CONFIG_USERCONFIG:-~/.npmrc})
* global config file ($PREFIX/etc/npmrc)
* npm builtin config file (/path/to/npm/npmrc)