diff options
author | Kat Marchán <kzm@sykosomatic.org> | 2016-12-18 20:22:09 -0800 |
---|---|---|
committer | Myles Borins <myles.borins@gmail.com> | 2016-12-28 15:30:50 -0500 |
commit | 9946519fba73687d34dccd5813808252a1973f3c (patch) | |
tree | 74d7194d2a00743bcd905027195e7e8000c5ac5a /deps/npm/html/doc/cli/npm-shrinkwrap.html | |
parent | 4d3b487b791606ea965f6280ce0eeea03d79b660 (diff) | |
download | android-node-v8-9946519fba73687d34dccd5813808252a1973f3c.tar.gz android-node-v8-9946519fba73687d34dccd5813808252a1973f3c.tar.bz2 android-node-v8-9946519fba73687d34dccd5813808252a1973f3c.zip |
deps: upgrade npm to 4.0.5
PR-URL: https://github.com/nodejs/node/pull/10330
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Diffstat (limited to 'deps/npm/html/doc/cli/npm-shrinkwrap.html')
-rw-r--r-- | deps/npm/html/doc/cli/npm-shrinkwrap.html | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/deps/npm/html/doc/cli/npm-shrinkwrap.html b/deps/npm/html/doc/cli/npm-shrinkwrap.html index bfe3410125..0f80895acf 100644 --- a/deps/npm/html/doc/cli/npm-shrinkwrap.html +++ b/deps/npm/html/doc/cli/npm-shrinkwrap.html @@ -139,12 +139,16 @@ already installed, since that would result in a shrinkwrap that wouldn't actually work. Similarly, the command will fail if there are extraneous packages (not referenced by <code>package.json</code>), since that would indicate that <code>package.json</code> is not correct.</p> -<p>Since <code>npm shrinkwrap</code> is intended to lock down your dependencies for -production use, <code>devDependencies</code> will not be included unless you -explicitly set the <code>--dev</code> flag when you run <code>npm shrinkwrap</code>. If -installed <code>devDependencies</code> are excluded, then npm will print a -warning. If you want them to be installed with your module by -default, please consider adding them to <code>dependencies</code> instead.</p> +<p>Starting with npm v4.0.1, <code>devDependencies</code> are included when you run +<code>npm shrinkwrap</code> and follow the usual rules as to when they're installed. +As of npm v3.10.8, if you run <code>npm install --only=production</code> or +<code>npm install --production</code> with a shrinkwrap including your development +dependencies they won't be installed. Similarly, if the environment +variable <code>NODE_ENV</code> is <code>production</code> then they won't be installed. If you +need compatibility with versions of npm prior to v3.10.8 or otherwise +don't want them in your shrinkwrap you can exclude development +dependencies with: +<code>npm shrinkwrap --only=prod</code> or <code>npm shrinkwrap --production</code>.</p> <p>If shrinkwrapped package A depends on shrinkwrapped package B, B's shrinkwrap will not be used as part of the installation of A. However, because A's shrinkwrap is constructed from a valid installation of B @@ -176,5 +180,5 @@ contents rather than versions.</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-shrinkwrap — npm@3.10.10</p> +<p id="footer">npm-shrinkwrap — npm@4.0.5</p> |