Skip to content

Commit

Permalink
doc: clarify how config files are configured
Browse files Browse the repository at this point in the history
PR-URL: npm/npm#13911
Credit: @othiym23
Reviewed-By: @zkat
  • Loading branch information
othiym23 authored and zkat committed Sep 9, 2016
1 parent 291a377 commit 8a02699
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions doc/misc/npm-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 8a02699

Please sign in to comment.