2014-09-17 06:38:50 +08:00
|
|
|
.TH "NPM\-RESTART" "3" "September 2014" "" ""
|
2011-11-27 01:21:03 +08:00
|
|
|
.SH "NAME"
|
2014-09-25 05:41:07 +08:00
|
|
|
\fBnpm-restart\fR \- Start a package
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.P
|
|
|
|
.RS 2
|
|
|
|
.EX
|
2011-11-27 01:21:03 +08:00
|
|
|
npm\.commands\.restart(packages, callback)
|
2014-09-25 05:41:07 +08:00
|
|
|
.EE
|
|
|
|
.RE
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.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
|
2011-11-27 01:21:03 +08:00
|
|
|
the "start" script\.
|
|
|
|
.P
|
|
|
|
If no version is specified, then it restarts the "active" version\.
|
|
|
|
.P
|
|
|
|
npm can run tests on multiple packages\. Just specify multiple packages
|
|
|
|
in the \fBpackages\fR parameter\.
|
2014-09-25 05:41:07 +08:00
|
|
|
.SH SEE ALSO
|
|
|
|
.RS 0
|
|
|
|
.IP \(bu 2
|
2011-11-27 01:21:03 +08:00
|
|
|
npm apihelp start
|
2014-09-25 05:41:07 +08:00
|
|
|
.IP \(bu 2
|
2011-11-27 01:21:03 +08:00
|
|
|
npm apihelp stop
|
2014-09-25 05:41:07 +08:00
|
|
|
|
|
|
|
.RE
|
2011-11-27 01:21:03 +08:00
|
|
|
|