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:
Diffstat (limited to 'doc/misc/npm-config.md')
-rw-r--r--doc/misc/npm-config.md10
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.