2014-11-05 07:08:12 +08:00
|
|
|
<h1><a href="../api/npm-update.html">npm-update</a></h1> <p>Update a package</p>
|
|
|
|
<h2 id="synopsis">SYNOPSIS</h2>
|
|
|
|
<pre><code>npm.commands.update(packages, callback)
|
|
|
|
</code></pre><h1 id="description">DESCRIPTION</h1>
|
2015-03-06 16:57:32 +08:00
|
|
|
<p>Updates a package, upgrading it to the latest version. It also installs any
|
|
|
|
missing packages.</p>
|
|
|
|
<p>The <code>packages</code> argument is an array of packages to update. The <code>callback</code>
|
|
|
|
parameter will be called when done or when an error occurs.</p>
|
|
|
|
<h2 id="see-also">SEE ALSO</h2>
|
|
|
|
<ul>
|
|
|
|
<li><a href="../cli/npm-update.html">npm-update(1)</a></li>
|
|
|
|
</ul>
|
2014-11-05 07:08:12 +08:00
|
|
|
|