UNPKG

npm

Version:

A package manager for node

25 lines (23 loc) 1.28 kB
<h1><a href="../cli/npm-tag.html">npm-tag</a></h1> <p>Tag a published version</p> <h2 id="synopsis">SYNOPSIS</h2> <pre><code>npm tag &lt;name&gt;@&lt;version&gt; [&lt;tag&gt;] </code></pre><h2 id="description">DESCRIPTION</h2> <p>Tags the specified version of the package with the specified tag, or the <code>--tag</code> config if not specified.</p> <p>A tag can be used when installing packages as a reference to a version instead of using a specific version number:</p> <pre><code>npm install &lt;name&gt;@&lt;tag&gt; </code></pre><p>When installing dependencies, a preferred tagged version may be specified:</p> <pre><code>npm install --tag &lt;tag&gt; </code></pre><p>This also applies to <code>npm dedupe</code>.</p> <p>Publishing a package always sets the &quot;latest&quot; tag to the published version.</p> <h2 id="see-also">SEE ALSO</h2> <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>