File Explorer

/var/lang/lib/node_modules/npm/man/man1

This explorer reads the filesystem of the server it runs on, so /workspace/user isn't present here. Browsing and the terminal still work against this server's own disk from /.

0 dirs
70 files
npm-restart.11.7 KB · 85 lines
.TH "NPM-RESTART" "1" "February 2026" "NPM@11.11.0" "".SH "NAME"\fBnpm-restart\fR - Restart a package.SS "Synopsis".P.RS 2.nfnpm restart \[lB]-- <args>\[rB].fi.RE.SS "Description".PThis restarts a project. It is equivalent to running \fBnpm run restart\fR..PIf the current project has a \fB"restart"\fR script specified in \fBpackage.json\fR, then the following scripts will be run:.RS 0.IP 1. 4prerestart.IP 2. 4restart.IP 3. 4postrestart.RE 0 .PIf it does \fInot\fR have a \fB"restart"\fR script specified, but it does have \fBstop\fR and/or \fBstart\fR scripts, then the following scripts will be run:.RS 0.IP 1. 4prerestart.IP 2. 4prestop.IP 3. 4stop.IP 4. 4poststop.IP 5. 4prestart.IP 6. 4start.IP 7. 4poststart.IP 8. 4postrestart.RE 0 .SS "Configuration".SS "\fBignore-scripts\fR".RS 0.IP \(bu 4Default: false.IP \(bu 4Type: Boolean.RE 0 .PIf true, npm does not run scripts specified in package.json files..PNote that commands explicitly intended to run a particular script, such as \fBnpm start\fR, \fBnpm stop\fR, \fBnpm restart\fR, \fBnpm test\fR, and \fBnpm run\fR will still run their intended script if \fBignore-scripts\fR is set, but they will \fInot\fR run any pre- or post-scripts..SS "\fBscript-shell\fR".RS 0.IP \(bu 4Default: '/bin/sh' on POSIX systems, 'cmd.exe' on Windows.IP \(bu 4Type: null or String.RE 0 .PThe shell to use for scripts run with the \fBnpm exec\fR, \fBnpm run\fR and \fBnpminit <package-spec>\fR commands..SS "See Also".RS 0.IP \(bu 4npm help run.IP \(bu 4npm help scripts.IP \(bu 4npm help test.IP \(bu 4npm help start.IP \(bu 4npm help stop.IP \(bu 4npm help restart.RE 0