mirror of https://github.com/nodejs/node.git
8 lines
474 B
HTML
8 lines
474 B
HTML
<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>
|
|
<p>Updates a package, upgrading it to the latest version. It also installs any missing packages.</p>
|
|
<p>The 'packages' argument is an array of packages to update. The 'callback' parameter will be called when done or when an error occurs.</p>
|
|
|