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 ignore-scripts
35 • Default: false
36
37 • Type: Boolean
38
39
40 If true, npm does not run scripts specified in package.json files.
41
42 Note that commands explicitly intended to run a particular script, such
43 as npm start, npm stop, npm restart, npm test, and npm run-script will
44 still run their intended script if ignore-scripts is set, but they will
45 not run any pre- or post-scripts.
46
47 script-shell
48 • Default: '/bin/sh' on POSIX systems, 'cmd.exe' on Windows
49
50 • Type: null or String
51
52
53 The shell to use for scripts run with the npm exec, npm run and npm
54 init <package-spec> commands.
55
56 See Also
57 • npm help run-script
58
59 • npm help scripts
60
61 • npm help test
62
63 • npm help start
64
65 • npm help restart
66
67
68
69 November 2023 NPM-STOP(1)