3 <title>npm-deprecate</title>
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-deprecate.html">npm-deprecate</a></h1> <p>Deprecate a version of a package</p>
11 <h2 id="SYNOPSIS">SYNOPSIS</h2>
13 <pre><code>npm deprecate <name>[@<version>] <message></code></pre>
15 <h2 id="DESCRIPTION">DESCRIPTION</h2>
17 <p>This command will update the npm registry entry for a package, providing
18 a deprecation warning to all who attempt to install it.</p>
20 <p>It works on version ranges as well as specific versions, so you can do
21 something like this:</p>
23 <pre><code>npm deprecate my-thing@"< 0.2.3" "critical bug fixed in v0.2.3"</code></pre>
25 <p>Note that you must be the package owner to deprecate something. See the
26 <code>owner</code> and <code>adduser</code> help topics.</p>
28 <p>To un-deprecate a package, specify an empty string (<code>""</code>) for the <code>message</code> argument.</p>
30 <h2 id="SEE-ALSO">SEE ALSO</h2>
32 <ul><li><a href="../cli/npm-publish.html">npm-publish(1)</a></li><li><a href="../misc/npm-registry.html">npm-registry(7)</a></li></ul>
34 <p id="footer">npm-deprecate — npm@1.3.17</p>
37 var wrapper = document.getElementById("wrapper")
38 var els = Array.prototype.slice.call(wrapper.getElementsByTagName("*"), 0)
39 .filter(function (el) {
40 return el.parentNode === wrapper
41 && el.tagName.match(/H[1-6]/)
45 , toc = document.createElement("ul")
46 toc.innerHTML = els.map(function (el) {
47 var i = el.tagName.charAt(1)
57 out += "<li><a href='#" + el.id + "'>" +
58 ( el.innerText || el.text || el.innerHTML)
63 document.body.appendChild(toc)