2021-04-01 17:27:18 -04:00
|
|
|
.TH "NPM\-RESTART" "1" "April 2021" "" ""
|
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
|
2020-12-11 18:54:56 -05:00
|
|
|
This restarts a project\. It is equivalent to running \fBnpm run\-script
|
|
|
|
restart\fP\|\.
|
2015-01-08 14:37:26 -08:00
|
|
|
.P
|
2020-12-11 18:54:56 -05:00
|
|
|
If the current project has a \fB"restart"\fP script specified in
|
|
|
|
\fBpackage\.json\fP, then the following scripts will be run:
|
|
|
|
.RS 0
|
|
|
|
.IP 1. 3
|
|
|
|
prerestart
|
|
|
|
.IP 2. 3
|
|
|
|
restart
|
|
|
|
.IP 3. 3
|
|
|
|
postrestart
|
|
|
|
|
|
|
|
.RE
|
|
|
|
.P
|
|
|
|
If it does \fInot\fR have a \fB"restart"\fP script specified, but it does have
|
|
|
|
\fBstop\fP and/or \fBstart\fP scripts, then the following scripts will be run:
|
2015-01-08 14:37:26 -08:00
|
|
|
.RS 0
|
|
|
|
.IP 1. 3
|
|
|
|
prerestart
|
|
|
|
.IP 2. 3
|
|
|
|
prestop
|
|
|
|
.IP 3. 3
|
|
|
|
stop
|
|
|
|
.IP 4. 3
|
|
|
|
poststop
|
|
|
|
.IP 5. 3
|
|
|
|
prestart
|
2020-12-11 18:54:56 -05:00
|
|
|
.IP 6. 3
|
2015-01-08 14:37:26 -08:00
|
|
|
start
|
2020-12-11 18:54:56 -05:00
|
|
|
.IP 7. 3
|
2015-01-08 14:37:26 -08:00
|
|
|
poststart
|
2020-12-11 18:54:56 -05:00
|
|
|
.IP 8. 3
|
2015-01-08 14:37:26 -08:00
|
|
|
postrestart
|
|
|
|
|
|
|
|
.RE
|
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
|