1 .TH "NPM\-RESTART" "3" "October 2016" "" ""
3 \fBnpm-restart\fR \- Restart a package
8 npm\.commands\.restart(packages, callback)
13 This restarts a package (or multiple packages)\.
15 This runs a package's "stop", "restart", and "start" scripts, and associated
16 pre\- and post\- scripts, in the order given below:
39 If no version is specified, then it restarts the "active" version\.
41 npm can restart multiple packages\. Just specify multiple packages in
42 the \fBpackages\fP parameter\.
45 Note that the "restart" script is run \fBin addition to\fR the "stop"
46 and "start" scripts, not instead of them\.
48 This is the behavior as of \fBnpm\fP major version 2\. A change in this
49 behavior will be accompanied by an increase in major version number