diff options
author | Forrest L Norvell <forrest@npmjs.com> | 2016-09-09 01:35:49 +0300 |
---|---|---|
committer | Kat Marchán <kzm@sykosomatic.org> | 2016-09-09 03:05:56 +0300 |
commit | 8a026992a03d90e563a97c70e90926862120693b (patch) | |
tree | a0367cf4cdfa75468db9ee28459ffce6944a1a81 /doc | |
parent | 291a377f32f5073102a8ede61a27e6a9b37154c2 (diff) |
doc: clarify how config files are configured
PR-URL: https://github.com/npm/npm/pull/13911
Credit: @othiym23
Reviewed-By: @zkat
Diffstat (limited to 'doc')
-rw-r--r-- | doc/misc/npm-config.md | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/doc/misc/npm-config.md b/doc/misc/npm-config.md index 4633269bf..76d1ee489 100644 --- a/doc/misc/npm-config.md +++ b/doc/misc/npm-config.md @@ -26,10 +26,12 @@ same. The four relevant files are: -* per-project config file (/path/to/my/project/.npmrc) -* per-user config file (${NPM_CONFIG_USERCONFIG:-~/.npmrc}) -* global config file ($PREFIX/etc/npmrc) -* npm builtin config file (/path/to/npm/npmrc) +* per-project configuration file (`/path/to/my/project/.npmrc`) +* per-user configuration file (defaults to `$HOME/.npmrc`; configurable via CLI + option `--userconfig` or environment variable `$NPM_CONF_USERCONFIG`) +* global configuration file (defaults to `$PREFIX/etc/npmrc`; configurable via + CLI option `--globalconfig` or environment variable `$NPM_CONF_GLOBALCONFIG`) +* npm's built-in configuration file (`/path/to/npm/npmrc`) See npmrc(5) for more details. |