diff options
author | Rebecca Turner <me@re-becca.org> | 2015-10-30 02:50:12 +0300 |
---|---|---|
committer | Jeremiah Senkpiel <fishrock123@rocketmail.com> | 2015-11-02 22:25:04 +0300 |
commit | 507fc53e37d3fc6abb5ce0f7c46c8d7479e647ab (patch) | |
tree | 68ea2bbf0733eb1a1977b899040e18d035737a51 /deps/npm/html/doc/cli/npm-install.html | |
parent | 6e40bf065931e20737875b27ab9ee71eaf5c7f99 (diff) |
deps: upgrade npm to 3.3.10
PR-URL: https://github.com/nodejs/node/pull/3599
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Diffstat (limited to 'deps/npm/html/doc/cli/npm-install.html')
-rw-r--r-- | deps/npm/html/doc/cli/npm-install.html | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/deps/npm/html/doc/cli/npm-install.html b/deps/npm/html/doc/cli/npm-install.html index 63057da6906..f9b2466670f 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: [--save|--save-dev|--save-optional] [--save-exact] [--dry-run] +common options: [-S|--save|-D|--save-dev|-O|--save-optional] [-E|--save-exact] [--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 @@ -67,7 +67,7 @@ after packing it up into a tarball (b).</p> <p> Example:</p> <pre><code> npm install https://github.com/indexzero/forever/tarball/v0.5.6 </code></pre></li> -<li><p><code>npm install [<@scope>/]<name> [--save|--save-dev|--save-optional]</code>:</p> +<li><p><code>npm install [<@scope>/]<name> [-S|--save|-D|--save-dev|-O|--save-optional]</code>:</p> <p> Do a <code><name>@<tag></code> install, where <code><tag></code> is the "tag" config. (See <code><a href="../misc/npm-config.html">npm-config(7)</a></code>.)</p> <p> In most cases, this will install the latest version @@ -77,15 +77,15 @@ after packing it up into a tarball (b).</p> </code></pre><p> <code>npm install</code> takes 3 exclusive, optional flags which save or update the package version in your main package.json:</p> <ul> -<li><p><code>--save</code>: Package will appear in your <code>dependencies</code>.</p> +<li><p><code>-S, --save</code>: Package will appear in your <code>dependencies</code>.</p> </li> -<li><p><code>--save-dev</code>: Package will appear in your <code>devDependencies</code>.</p> +<li><p><code>-D, --save-dev</code>: Package will appear in your <code>devDependencies</code>.</p> </li> -<li><p><code>--save-optional</code>: Package will appear in your <code>optionalDependencies</code>.</p> +<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> </li> -<li><p><code>--save-exact</code>: Saved dependencies will be configured with an +<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> <p>Further, if you have an <code>npm-shrinkwrap.json</code> then it will be updated as @@ -173,7 +173,7 @@ GIT_SSH_COMMAND='ssh -i ~/.ssh/custom_ident' npm install git+ssh://git@g <li><p><code>npm install gist:[<githubname>/]<gistID>[#<commit-ish>]</code>:</p> <p> Install the package at <code>https://gist.github.com/gistID</code> by attempting to clone it using <code>git</code>. The GitHub username associated with the gist is - optional and will not be saved in <code>package.json</code> if <code>--save</code> is used.</p> + optional and will not be saved in <code>package.json</code> if <code>-S</code> or <code>--save</code> is used.</p> <p> If you don't specify a <em>commit-ish</em> then <code>master</code> will be used.</p> <p> Example:</p> <pre><code> npm install gist:101a11beef @@ -201,10 +201,10 @@ tag with the given name exists, the tagged version is preferred over newer versions.</p> <p>The <code>--dry-run</code> argument will report in the usual way what the install would have done without actually installing anything.</p> -<p>The <code>--force</code> argument will force npm to fetch remote resources even if a +<p>The <code>-f</code> or <code>--force</code> argument will force npm to fetch remote resources even if a local copy exists on disk.</p> <pre><code>npm install sax --force -</code></pre><p>The <code>--global</code> argument will cause npm to install the package globally +</code></pre><p>The <code>-g</code> or <code>--global</code> argument will cause npm to install the package globally rather than locally. See <code><a href="../files/npm-folders.html">npm-folders(5)</a></code>.</p> <p>The <code>--link</code> argument will cause npm to link global installs into the local space in some cases.</p> @@ -217,7 +217,7 @@ shrinkwrap file and use the package.json instead.</p> <p>The <code>--nodedir=/path/to/node/source</code> argument will allow npm to find the node source code so that npm can compile native modules.</p> <p>The <code>--only={prod[uction]|dev[elopment]}</code> argument will cause either only -<code>devDependencies</code> or only non-<code>devDependencies</code> to be installed.</p> +<code>devDependencies</code> or only non-<code>devDependencies</code> to be installed regardless of the <code>NODE_ENV</code>.</p> <p>See <code><a href="../misc/npm-config.html">npm-config(7)</a></code>. Many of the configuration params have some effect on installation, since that's most of what npm does.</p> <h2 id="algorithm">ALGORITHM</h2> @@ -247,7 +247,7 @@ at the top level because nothing conflicts with it.</p> +-- C `-- D@2 +-- D@1 -</code></pre><p>Because B's D@1 will be installed in the top leve, C now has to install D@2 +</code></pre><p>Because B's D@1 will be installed in the top level, C now has to install D@2 privately for itself.</p> <p>See <a href="../files/npm-folders.html">npm-folders(5)</a> for a more detailed description of the specific folder structures that npm creates.</p> @@ -295,5 +295,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.3.6</p> +<p id="footer">npm-install — npm@3.3.10</p> |