mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
776 B
17 lines
776 B
10 years ago
|
<h1><a href="../api/npm-restart.html">npm-restart</a></h1> <p>Start a package</p>
|
||
|
<h2 id="synopsis">SYNOPSIS</h2>
|
||
|
<pre><code>npm.commands.restart(packages, callback)
|
||
|
</code></pre><h2 id="description">DESCRIPTION</h2>
|
||
|
<p>This runs a package's "restart" script, if one was provided.
|
||
|
Otherwise it runs package's "stop" script, if one was provided, and then
|
||
|
the "start" script.</p>
|
||
|
<p>If no version is specified, then it restarts the "active" version.</p>
|
||
|
<p>npm can run tests on multiple packages. Just specify multiple packages
|
||
|
in the <code>packages</code> parameter.</p>
|
||
|
<h2 id="see-also">SEE ALSO</h2>
|
||
|
<ul>
|
||
|
<li><a href="../api/npm-start.html">npm-start(3)</a></li>
|
||
|
<li><a href="../api/npm-stop.html">npm-stop(3)</a></li>
|
||
|
</ul>
|
||
|
|