diff options
Diffstat (limited to 'deps/npm/html/doc/misc/npm-config.html')
-rw-r--r-- | deps/npm/html/doc/misc/npm-config.html | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/deps/npm/html/doc/misc/npm-config.html b/deps/npm/html/doc/misc/npm-config.html index c6fc5cad3c..68548cb08e 100644 --- a/deps/npm/html/doc/misc/npm-config.html +++ b/deps/npm/html/doc/misc/npm-config.html @@ -15,8 +15,13 @@ <h3 id="command-line-flags">Command Line Flags</h3> <p>Putting <code>--foo bar</code> on the command line sets the <code>foo</code> configuration parameter to <code>"bar"</code>. A <code>--</code> argument tells the cli parser to stop -reading flags. A <code>--flag</code> parameter that is at the <em>end</em> of the -command will be given the value of <code>true</code>.</p> +reading flags. Using <code>--flag</code> without specifying any value will set +the value to <code>true</code>.</p> +<p>Example: <code>--flag1 --flag2</code> will set both configuration parameters +to <code>true</code>, while <code>--flag1 --flag2 bar</code> will set <code>flag1</code> to <code>true</code>, +and <code>flag2</code> to <code>bar</code>. Finally, <code>--flag1 --flag2 -- bar</code> will set +both configuration parameters to <code>true</code>, and the <code>bar</code> is taken +as a command argument.</p> <h3 id="environment-variables">Environment Variables</h3> <p>Any environment variables that start with <code>npm_config_</code> will be interpreted as a configuration parameter. For example, putting @@ -25,7 +30,7 @@ configuration parameter to <code>bar</code>. Any environment configurations tha are not given a value will be given the value of <code>true</code>. Config values are case-insensitive, so <code>NPM_CONFIG_FOO=bar</code> will work the same. However, please note that inside <a href="/misc/scripts">npm-scripts</a> -npm will set it's own environment variables and Node will prefer +npm will set its own environment variables and Node will prefer those lowercase versions over any uppercase ones that you might set. For details see <a href="https://github.com/npm/npm/issues/14528">this issue</a>.</p> <h3 id="npmrc-files">npmrc Files</h3> @@ -33,9 +38,9 @@ For details see <a href="https://github.com/npm/npm/issues/14528">this issue</a> <ul> <li>per-project configuration file (<code>/path/to/my/project/.npmrc</code>)</li> <li>per-user configuration file (defaults to <code>$HOME/.npmrc</code>; configurable via CLI -option <code>--userconfig</code> or environment variable <code>$NPM_CONF_USERCONFIG</code>)</li> +option <code>--userconfig</code> or environment variable <code>$NPM_CONFIG_USERCONFIG</code>)</li> <li>global configuration file (defaults to <code>$PREFIX/etc/npmrc</code>; configurable via -CLI option <code>--globalconfig</code> or environment variable <code>$NPM_CONF_GLOBALCONFIG</code>)</li> +CLI option <code>--globalconfig</code> or environment variable <code>$NPM_CONFIG_GLOBALCONFIG</code>)</li> <li>npm's built-in configuration file (<code>/path/to/npm/npmrc</code>)</li> </ul> <p>See <a href="../files/npmrc.html">npmrc(5)</a> for more details.</p> @@ -756,6 +761,12 @@ in to a private registry for the first time: <code>npm login --scope=@organization --registry=registry.organization.com</code>, which will cause <code>@organization</code> to be mapped to the registry for future installation of packages specified according to the pattern <code>@organization/package</code>.</p> +<h3 id="script-shell">script-shell</h3> +<ul> +<li>Default: <code>null</code></li> +<li>Type: path</li> +</ul> +<p>The shell to use for scripts run with the <code>npm run</code> command.</p> <h3 id="scripts-prepend-node-path">scripts-prepend-node-path</h3> <ul> <li>Default: "warn-only"</li> @@ -981,5 +992,5 @@ exit successfully.</p> <tr><td style="width:60px;height:10px;background:rgb(237,127,127)" colspan=6> </td><td colspan=10 style="width:10px;height:10px;background:rgb(237,127,127)"> </td></tr> <tr><td colspan=5 style="width:50px;height:10px;background:#fff"> </td><td style="width:40px;height:10px;background:rgb(237,127,127)" colspan=4> </td><td style="width:90px;height:10px;background:#fff" colspan=9> </td></tr> </table> -<p id="footer">npm-config — npm@5.0.3</p> +<p id="footer">npm-config — npm@5.3.0</p> |