diff options
author | Jason Karns <jason.karns@gmail.com> | 2016-07-26 21:48:31 +0300 |
---|---|---|
committer | Kat Marchán <kzm@sykosomatic.org> | 2016-09-09 00:53:10 +0300 |
commit | b82fd838edbfff5d2833a62f6d8ae8ea2df5a1f2 (patch) | |
tree | d8850d7482beede416eab20535589de52a209960 | |
parent | 116b6c60a174ea0cc49e4d62717e4e26175b6534 (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
-rw-r--r-- | doc/misc/npm-config.md | 2 |
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) |