1NPM-RESTART(1)                                                  NPM-RESTART(1)
2
3
4

NAME

6       npm-restart - Restart a package
7
8   Synopsis
9         npm restart [-- <args>]
10
11   Description
12       This  restarts  a  project.  It is equivalent to running npm run-script
13       restart.
14
15       If the current project  has  a  "restart"  script  specified  in  pack‐
16       age.json, then the following scripts will be run:
17
18       1.  prerestart
19
20       2.  restart
21
22       3.  postrestart
23
24
25       If it does not have a "restart" script specified, but it does have stop
26       and/or start scripts, then the following scripts will be run:
27
28       1.  prerestart
29
30       2.  prestop
31
32       3.  stop
33
34       4.  poststop
35
36       5.  prestart
37
38       6.  start
39
40       7.  poststart
41
42       8.  postrestart
43
44
45   Configuration
46   ignore-scripts
47       •   Default: false
48
49       •   Type: Boolean
50
51
52       If true, npm does not run scripts specified in package.json files.
53
54       Note that commands explicitly intended to run a particular script, such
55       as  npm start, npm stop, npm restart, npm test, and npm run-script will
56       still run their intended script if ignore-scripts is set, but they will
57       not run any pre- or post-scripts.
58
59   script-shell
60       •   Default: '/bin/sh' on POSIX systems, 'cmd.exe' on Windows
61
62       •   Type: null or String
63
64
65       The  shell  to  use  for scripts run with the npm exec, npm run and npm
66       init <package-spec> commands.
67
68   See Also
69       •   npm help run-script
70
71       •   npm help scripts
72
73       •   npm help test
74
75       •   npm help start
76
77       •   npm help stop
78
79       •   npm help restart
80
81
82
83                                 November 2023                  NPM-RESTART(1)
Impressum