2020-12-04 15:51:55 -05:00
|
|
|
.TH "NPM\-RESTART" "1" "December 2020" "" ""
|
2011-11-26 09:21:03 -08:00
|
|
|
.SH "NAME"
|
2019-11-18 21:01:39 +02:00
|
|
|
\fBnpm-restart\fR \- Restart a package
|
2019-11-05 14:55:08 -05:00
|
|
|
.SS Synopsis
|
2014-09-24 14:41:07 -07:00
|
|
|
.P
|
|
|
|
.RS 2
|
2014-11-04 15:08:12 -08:00
|
|
|
.nf
|
2014-09-24 14:41:07 -07:00
|
|
|
npm restart [\-\- <args>]
|
2014-11-04 15:08:12 -08:00
|
|
|
.fi
|
2014-09-24 14:41:07 -07:00
|
|
|
.RE
|
2019-11-05 14:55:08 -05:00
|
|
|
.SS Description
|
2014-09-24 14:41:07 -07:00
|
|
|
.P
|
2015-01-08 14:37:26 -08:00
|
|
|
This restarts a package\.
|
|
|
|
.P
|
|
|
|
This runs a package's "stop", "restart", and "start" scripts, and associated
|
|
|
|
pre\- and post\- scripts, in the order given below:
|
|
|
|
.RS 0
|
|
|
|
.IP 1. 3
|
|
|
|
prerestart
|
|
|
|
.IP 2. 3
|
|
|
|
prestop
|
|
|
|
.IP 3. 3
|
|
|
|
stop
|
|
|
|
.IP 4. 3
|
|
|
|
poststop
|
|
|
|
.IP 5. 3
|
|
|
|
restart
|
|
|
|
.IP 6. 3
|
|
|
|
prestart
|
|
|
|
.IP 7. 3
|
|
|
|
start
|
|
|
|
.IP 8. 3
|
|
|
|
poststart
|
|
|
|
.IP 9. 3
|
|
|
|
postrestart
|
|
|
|
|
|
|
|
.RE
|
2019-11-05 14:55:08 -05:00
|
|
|
.SS Note
|
2015-01-08 14:37:26 -08:00
|
|
|
.P
|
|
|
|
Note that the "restart" script is run \fBin addition to\fR the "stop"
|
|
|
|
and "start" scripts, not instead of them\.
|
|
|
|
.P
|
2015-07-24 15:09:52 -07:00
|
|
|
This is the behavior as of \fBnpm\fP major version 2\. A change in this
|
2015-01-08 14:37:26 -08:00
|
|
|
behavior will be accompanied by an increase in major version number
|
2019-11-05 14:55:08 -05:00
|
|
|
.SS See Also
|
2014-09-24 14:41:07 -07:00
|
|
|
.RS 0
|
|
|
|
.IP \(bu 2
|
2019-11-18 21:01:39 +02:00
|
|
|
npm help run\-script
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2019-11-18 21:01:39 +02:00
|
|
|
npm help scripts
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2019-11-18 21:01:39 +02:00
|
|
|
npm help test
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2019-11-18 21:01:39 +02:00
|
|
|
npm help start
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2019-11-18 21:01:39 +02:00
|
|
|
npm help stop
|
2015-01-08 14:37:26 -08:00
|
|
|
.IP \(bu 2
|
2019-11-18 21:01:39 +02:00
|
|
|
npm help restart
|
2014-09-24 14:41:07 -07:00
|
|
|
|
|
|
|
.RE
|