8c861103397fcc4a3c234029dc0d8562f71a14c3
[platform/upstream/nodejs.git] / deps / npm / html / doc / cli / npm-deprecate.html
1 <!doctype html>
2 <html>
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">
6
7   <body>
8     <div id="wrapper">
9 <h1><a href="../cli/npm-deprecate.html">npm-deprecate</a></h1> <p>Deprecate a version of a package</p>
10
11 <h2 id="SYNOPSIS">SYNOPSIS</h2>
12
13 <pre><code>npm deprecate &lt;name&gt;[@&lt;version&gt;] &lt;message&gt;</code></pre>
14
15 <h2 id="DESCRIPTION">DESCRIPTION</h2>
16
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>
19
20 <p>It works on version ranges as well as specific versions, so you can do
21 something like this:</p>
22
23 <pre><code>npm deprecate my-thing@&quot;&lt; 0.2.3&quot; &quot;critical bug fixed in v0.2.3&quot;</code></pre>
24
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>
27
28 <p>To un-deprecate a package, specify an empty string (<code>&quot;&quot;</code>) for the <code>message</code> argument.</p>
29
30 <h2 id="SEE-ALSO">SEE ALSO</h2>
31
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>
33 </div>
34 <p id="footer">npm-deprecate &mdash; npm@1.3.15</p>
35 <script>
36 ;(function () {
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]/)
42         && el.id
43   })
44 var l = 2
45   , toc = document.createElement("ul")
46 toc.innerHTML = els.map(function (el) {
47   var i = el.tagName.charAt(1)
48     , out = ""
49   while (i > l) {
50     out += "<ul>"
51     l ++
52   }
53   while (i < l) {
54     out += "</ul>"
55     l --
56   }
57   out += "<li><a href='#" + el.id + "'>" +
58     ( el.innerText || el.text || el.innerHTML)
59     + "</a>"
60   return out
61 }).join("\n")
62 toc.id = "toc"
63 document.body.appendChild(toc)
64 })()
65 </script>