npm: Upgrade to 1.3.19
[platform/upstream/nodejs.git] / deps / npm / html / doc / cli / npm-tag.html
1 <!doctype html>
2 <html>
3   <title>npm-tag</title>
4   <meta http-equiv="content-type" value="text/html;utf-8">
5   <link rel="stylesheet" type="text/css" href="../../static/style.css">
6
7   <body>
8     <div id="wrapper">
9 <h1><a href="../cli/npm-tag.html">npm-tag</a></h1> <p>Tag a published version</p>
10
11 <h2 id="SYNOPSIS">SYNOPSIS</h2>
12
13 <pre><code>npm tag &lt;name&gt;@&lt;version&gt; [&lt;tag&gt;]</code></pre>
14
15 <h2 id="DESCRIPTION">DESCRIPTION</h2>
16
17 <p>Tags the specified version of the package with the specified tag, or the
18 <code>--tag</code> config if not specified.</p>
19
20 <p>A tag can be used when installing packages as a reference to a version instead
21 of using a specific version number:</p>
22
23 <pre><code>npm install &lt;name&gt;@&lt;tag&gt;</code></pre>
24
25 <p>When installing dependencies, a preferred tagged version may be specified:</p>
26
27 <pre><code>npm install --tag &lt;tag&gt;</code></pre>
28
29 <p>This also applies to <code>npm dedupe</code>.</p>
30
31 <p>Publishing a package always sets the &quot;latest&quot; tag to the published version.</p>
32
33 <h2 id="SEE-ALSO">SEE ALSO</h2>
34
35 <ul><li><a href="../cli/npm-publish.html">npm-publish(1)</a></li><li><a href="../cli/npm-install.html">npm-install(1)</a></li><li><a href="../cli/npm-dedupe.html">npm-dedupe(1)</a></li><li><a href="../misc/npm-registry.html">npm-registry(7)</a></li><li><a href="../cli/npm-config.html">npm-config(1)</a></li><li><a href="../misc/npm-config.html">npm-config(7)</a></li><li><a href="../files/npmrc.html">npmrc(5)</a></li></ul>
36 </div>
37 <p id="footer">npm-tag &mdash; npm@1.3.19</p>
38 <script>
39 ;(function () {
40 var wrapper = document.getElementById("wrapper")
41 var els = Array.prototype.slice.call(wrapper.getElementsByTagName("*"), 0)
42   .filter(function (el) {
43     return el.parentNode === wrapper
44         && el.tagName.match(/H[1-6]/)
45         && el.id
46   })
47 var l = 2
48   , toc = document.createElement("ul")
49 toc.innerHTML = els.map(function (el) {
50   var i = el.tagName.charAt(1)
51     , out = ""
52   while (i > l) {
53     out += "<ul>"
54     l ++
55   }
56   while (i < l) {
57     out += "</ul>"
58     l --
59   }
60   out += "<li><a href='#" + el.id + "'>" +
61     ( el.innerText || el.text || el.innerHTML)
62     + "</a>"
63   return out
64 }).join("\n")
65 toc.id = "toc"
66 document.body.appendChild(toc)
67 })()
68 </script>