.TH "NPM\-RESTART" "1" "November 2022" "9.1.1" .SH "NAME" \fBnpm-restart\fR .SH Synopsis .SH Description .P This restarts a project\. It is equivalent to running \fBnpm run\-script restart\fP\|\. .P If the current project has a \fB"restart"\fP script specified in .br \fBpackage\.json\fP, then the following scripts will be run: .RS 1 .IP \(bu 2 prerestart .IP \(bu 2 restart .IP \(bu 2 postrestart .RE .P If it does \fInot\fR have a \fB"restart"\fP script specified, but it does have .br \fBstop\fP and/or \fBstart\fP scripts, then the following scripts will be run: .RS 1 .IP \(bu 2 prerestart .IP \(bu 2 prestop .IP \(bu 2 stop .IP \(bu 2 poststop .IP \(bu 2 prestart .IP \(bu 2 start .IP \(bu 2 poststart .IP \(bu 2 postrestart .RE .SH Configuration .SH See Also .RS 1 .IP \(bu 2 npm run\-script .IP \(bu 2 npm scripts .IP \(bu 2 npm test .IP \(bu 2 npm start .IP \(bu 2 npm stop .IP \(bu 2 npm restart .RE