4 <meta http-equiv="content-type" value="text/html;utf-8">
5 <link rel="stylesheet" type="text/css" href="../../static/style.css">
9 <h1><a href="../cli/npm-tag.html">npm-tag</a></h1> <p>Tag a published version</p>
11 <h2 id="SYNOPSIS">SYNOPSIS</h2>
13 <pre><code>npm tag <name>@<version> [<tag>]</code></pre>
15 <h2 id="DESCRIPTION">DESCRIPTION</h2>
17 <p>Tags the specified version of the package with the specified tag, or the
18 <code>--tag</code> config if not specified.</p>
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>
23 <pre><code>npm install <name>@<tag></code></pre>
25 <p>When installing dependencies, a preferred tagged version may be specified:</p>
27 <pre><code>npm install --tag <tag></code></pre>
29 <p>This also applies to <code>npm dedupe</code>.</p>
31 <p>Publishing a package always sets the "latest" tag to the published version.</p>
33 <h2 id="SEE-ALSO">SEE ALSO</h2>
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>
37 <p id="footer">npm-tag — npm@1.3.19</p>
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]/)
48 , toc = document.createElement("ul")
49 toc.innerHTML = els.map(function (el) {
50 var i = el.tagName.charAt(1)
60 out += "<li><a href='#" + el.id + "'>" +
61 ( el.innerText || el.text || el.innerHTML)
66 document.body.appendChild(toc)