3 <title>npm-update</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-update.html">npm-update</a></h1> <p>Update a package</p>
11 <h2 id="SYNOPSIS">SYNOPSIS</h2>
13 <pre><code>npm update [-g] [<name> [<name> ...]]</code></pre>
15 <h2 id="DESCRIPTION">DESCRIPTION</h2>
17 <p>This command will update all the packages listed to the latest version
18 (specified by the <code>tag</code> config).</p>
20 <p>It will also install missing packages.</p>
22 <p>If the <code>-g</code> flag is specified, this command will update globally installed packages.
23 If no package name is specified, all packages in the specified location (global or local) will be updated.</p>
25 <h2 id="SEE-ALSO">SEE ALSO</h2>
27 <ul><li><a href="../cli/npm-install.html">npm-install(1)</a></li><li><a href="../cli/npm-outdated.html">npm-outdated(1)</a></li><li><a href="../misc/npm-registry.html">npm-registry(7)</a></li><li><a href="../files/npm-folders.html">npm-folders(5)</a></li><li><a href="../cli/npm-ls.html">npm-ls(1)</a></li></ul>
29 <p id="footer">npm-update — npm@1.3.19</p>
32 var wrapper = document.getElementById("wrapper")
33 var els = Array.prototype.slice.call(wrapper.getElementsByTagName("*"), 0)
34 .filter(function (el) {
35 return el.parentNode === wrapper
36 && el.tagName.match(/H[1-6]/)
40 , toc = document.createElement("ul")
41 toc.innerHTML = els.map(function (el) {
42 var i = el.tagName.charAt(1)
52 out += "<li><a href='#" + el.id + "'>" +
53 ( el.innerText || el.text || el.innerHTML)
58 document.body.appendChild(toc)