1NPM-STOP(1) NPM-STOP(1)
2
3
4
6 npm-stop - Stop a package
7
8 Synopsis
9 npm stop [-- <args>]
10
11 Description
12 This runs a predefined command specified in the "stop" property of a
13 package's "scripts" object.
14
15 Unlike with npm help start, there is no default script that will run if
16 the "stop" property is not defined.
17
18 Example
19 {
20 "scripts": {
21 "stop": "node bar.js"
22 }
23 }
24
25 npm stop
26
27 > npm@x.x.x stop
28 > node bar.js
29
30 (bar.js output would be here)
31
32
33 Configuration
34 <!-- AUTOGENERATED CONFIG DESCRIPTIONS START --> <!-- automatically
35 generated, do not edit manually --> <!-- see lib/utils/config/defini‐
36 tions.js -->
37
38 ignore-scripts
39 • Default: false
40
41 • Type: Boolean
42
43
44 If true, npm does not run scripts specified in package.json files.
45
46 Note that commands explicitly intended to run a particular script, such
47 as npm start, npm stop, npm restart, npm test, and npm run-script will
48 still run their intended script if ignore-scripts is set, but they will
49 not run any pre- or post-scripts. <!-- automatically generated, do not
50 edit manually --> <!-- see lib/utils/config/definitions.js -->
51
52
53 script-shell
54 • Default: '/bin/sh' on POSIX systems, 'cmd.exe' on Windows
55
56 • Type: null or String
57
58
59 The shell to use for scripts run with the npm exec, npm run and npm
60 init <pkg> commands. <!-- automatically generated, do not edit manu‐
61 ally --> <!-- see lib/utils/config/definitions.js -->
62
63 <!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
64
65
66 See Also
67 • npm help run-script
68
69 • npm help scripts
70
71 • npm help test
72
73 • npm help start
74
75 • npm help restart
76
77
78
79
80 October 2021 NPM-STOP(1)