diff options
author | Forrest L Norvell <forrest@npmjs.com> | 2016-03-30 09:30:51 +0300 |
---|---|---|
committer | Myles Borins <mborins@us.ibm.com> | 2016-04-02 00:47:39 +0300 |
commit | 0928584444ac6edf1ead0b93c9d05b1124183702 (patch) | |
tree | f64c5646b8e2817009e7afe97c2670c73d38a7eb /deps/npm/html/doc/cli/npm-install.html | |
parent | 39de601e1c3eda92eb2e37eca4e6aa960f206f39 (diff) |
deps: upgrade npm to 3.8.3
PR-URL: https://github.com/npm/node/pull/6
Reviewed-By: Evan Lucas <evanlucas@me.com>
Diffstat (limited to 'deps/npm/html/doc/cli/npm-install.html')
-rw-r--r-- | deps/npm/html/doc/cli/npm-install.html | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/deps/npm/html/doc/cli/npm-install.html b/deps/npm/html/doc/cli/npm-install.html index f7bb35ecf3d..bc9f2bbb878 100644 --- a/deps/npm/html/doc/cli/npm-install.html +++ b/deps/npm/html/doc/cli/npm-install.html @@ -21,7 +21,7 @@ npm install <tarball url> npm install <folder> alias: npm i -common options: [-S|--save|-D|--save-dev|-O|--save-optional] [-E|--save-exact] [--dry-run] +common options: [-S|--save|-D|--save-dev|-O|--save-optional] [-E|--save-exact] [-B|--save-bundle] [--dry-run] </code></pre><h2 id="description">DESCRIPTION</h2> <p>This command installs a package, and any packages that it depends on. If the package has a shrinkwrap file, the installation of dependencies will be driven @@ -84,11 +84,13 @@ after packing it up into a tarball (b).</p> </li> <li><p><code>-O, --save-optional</code>: Package will appear in your <code>optionalDependencies</code>.</p> <p>When using any of the above options to save dependencies to your -package.json, there is an additional, optional flag:</p> +package.json, there are two additional, optional flags:</p> </li> <li><p><code>-E, --save-exact</code>: Saved dependencies will be configured with an exact version rather than using npm's default semver range operator.</p> +</li> +<li><p><code>-B, --save-bundle</code>: Saved dependencies will also be added to your <code>bundleDependencies</code> list.</p> <p>Further, if you have an <code>npm-shrinkwrap.json</code> then it will be updated as well.</p> <p><code><scope></code> is optional. The package will be downloaded from the registry @@ -104,6 +106,7 @@ npm install @myorg/privatepackage npm install node-tap --save-dev npm install dtrace-provider --save-optional npm install readable-stream --save --save-exact +npm install ansi-regex --save --save-bundle </code></pre></li> </ul> </li> @@ -213,7 +216,7 @@ rather than locally. See <code><a href="../files/npm-folders.html">npm-folders( your local <code>node_modules</code> folder with the same layout it uses with the global <code>node_modules</code> folder. Only your direct dependencies will show in <code>node_modules</code> and everything they depend on will be flattened in their -<code>node_modules</code> folders. This obviously will elminate some deduping.</p> +<code>node_modules</code> folders. This obviously will eliminate some deduping.</p> <p>The <code>--legacy-bundling</code> argument will cause npm to install the package such that versions of npm prior to 1.4, such as the one included with node 0.8, can install the package. This eliminates all automatic deduping.</p> @@ -307,5 +310,5 @@ affects a real use-case, it will be investigated.</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-install — npm@3.7.3</p> +<p id="footer">npm-install — npm@3.8.3</p> |