diff options
Diffstat (limited to 'deps/npm/html/doc/cli/npm-install.html')
-rw-r--r-- | deps/npm/html/doc/cli/npm-install.html | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/deps/npm/html/doc/cli/npm-install.html b/deps/npm/html/doc/cli/npm-install.html index caf36b9f1..c475cc746 100644 --- a/deps/npm/html/doc/cli/npm-install.html +++ b/deps/npm/html/doc/cli/npm-install.html @@ -131,50 +131,50 @@ fetch the package by name if it is not valid. <pre><code> npm install sax@">=0.1.0 <0.2.0" npm install @myorg/privatepackage@">=0.1.0 <0.2.0" </code></pre></li> -<li><p><code>npm install <githubname>/<githubrepo></code>:</p> +<li><p><code>npm install <git remote url></code>:</p> +<p> Install a package by cloning a git remote url. The format of the git + url is:</p> +<pre><code> <protocol>://[<user>[:<password>]@]<hostname>[:<port>][:/]<path>[#<commit-ish>] +</code></pre><p> <code><protocol></code> is one of <code>git</code>, <code>git+ssh</code>, <code>git+http</code>, or + <code>git+https</code>. If no <code><commit-ish></code> is specified, then <code>master</code> is + used.</p> +<p> Examples:</p> +<pre><code> git+ssh://git@github.com:npm/npm.git#v1.0.27 + git+https://isaacs@github.com/npm/npm.git + git://github.com/npm/npm.git#v1.0.27 +</code></pre></li> +<li><p><code>npm install <githubname>/<githubrepo>[#<commit-ish>]</code>:</p> +</li> +<li><p><code>npm install github:<githubname>/<githubrepo>[#<commit-ish>]</code>:</p> <p> Install the package at <code>https://github.com/githubname/githubrepo</code> by attempting to clone it using <code>git</code>.</p> -<p> Example:</p> +<p> If you don't specify a <em>commit-ish</em> then <code>master</code> will be used.</p> +<p> Examples:</p> <pre><code> npm install mygithubuser/myproject -</code></pre><p> To reference a package in a generic git repo (not on GitHub), see git remote - urls below.</p> -</li> -<li><p><code>npm install github:<githubname>/<githubrepo></code>:</p> -<p> The same as the above, but explicitly marked as a GitHub dependency.</p> -<p> Example:</p> -<pre><code> npm install github:npm/npm + npm install github:mygithubuser/myproject </code></pre></li> -<li><p><code>npm install gist:[<githubname>/]<gistID></code>:</p> +<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> +<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 </code></pre></li> -<li><p><code>npm install bitbucket:<bitbucketname>/<bitbucketrepo></code>:</p> +<li><p><code>npm install bitbucket:<bitbucketname>/<bitbucketrepo>[#<commit-ish>]</code>:</p> <p> Install the package at <code>https://bitbucket.org/bitbucketname/bitbucketrepo</code> by attempting to clone it using <code>git</code>.</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 bitbucket:mybitbucketuser/myproject </code></pre></li> -<li><p><code>npm install gitlab:<gitlabname>/<gitlabrepo></code>:</p> +<li><p><code>npm install gitlab:<gitlabname>/<gitlabrepo>[#<commit-ish>]</code>:</p> <p> Install the package at <code>https://gitlab.com/gitlabname/gitlabrepo</code> by attempting to clone it using <code>git</code>.</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 gitlab:mygitlabuser/myproject </code></pre></li> -<li><p><code>npm install <git remote url></code>:</p> -<p> Install a package by cloning a git remote url. The format of the git - url is:</p> -<pre><code> <protocol>://[<user>[:<password>]@]<hostname><separator><path>[#<commit-ish>] -</code></pre><p> <code><protocol></code> is one of <code>git</code>, <code>git+ssh</code>, <code>git+http</code>, or - <code>git+https</code>. If no <code><commit-ish></code> is specified, then <code>master</code> is - used.</p> -<p> Examples:</p> -<pre><code> git+ssh://git@github.com:npm/npm.git#v1.0.27 - git+https://isaacs@github.com/npm/npm.git - git://github.com/npm/npm.git#v1.0.27 -</code></pre></li> </ul> <p>You may combine multiple arguments, and even multiple types of arguments. For example:</p> @@ -264,5 +264,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@2.9.1</p> +<p id="footer">npm-install — npm@2.10.1</p> |