1 .\" Generated with Ronnjs 0.3.8
2 .\" http://github.com/kapouer/ronnjs/
4 .TH "NPMRC" "5" "November 2013" "" ""
7 \fBnpmrc\fR \-\- The npm config files
10 npm gets its config settings from the command line, environment
11 variables, and \fBnpmrc\fR files\.
14 The \fBnpm config\fR command can be used to update and edit the contents
15 of the user and global npmrc files\.
18 npm help For a list of available configuration options, see npm\-config\.
21 The three relevant files are:
24 per\-user config file (~/\.npmrc)
27 global config file ($PREFIX/npmrc)
30 npm builtin config file (/path/to/npm/npmrc)
35 All npm config files are an ini\-formatted list of \fBkey = value\fR
36 parameters\. Environment variables can be replaced using \fB${VARIABLE_NAME}\fR\|\. For example:
41 prefix = ${HOME}/\.npm\-packages
48 Each of these files is loaded, and config options are resolved in
49 priority order\. For example, a setting in the userconfig file would
50 override the setting in the globalconfig file\.
52 .SS "Per\-user config file"
53 \fB$HOME/\.npmrc\fR (or the \fBuserconfig\fR param, if set in the environment
54 or on the command line)
56 .SS "Global config file"
57 \fB$PREFIX/etc/npmrc\fR (or the \fBglobalconfig\fR param, if set above):
58 This file is an ini\-file formatted list of \fBkey = value\fR parameters\.
59 Environment variables can be replaced as above\.
61 .SS "Built\-in config file"
62 \fBpath/to/npm/itself/npmrc\fR
65 This is an unchangeable "builtin" configuration file that npm keeps
66 consistent across updates\. Set fields in here using the \fB\|\./configure\fR
67 script that comes with npm\. This is primarily for distribution
68 maintainers to override default configs in a standard and consistent
83 npm help package\.json