1 ---
2 title: npm-stop
3 section: 1
4 description: Stop a package
5 github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/commands/npm-stop.md
8 redirect_from:
9 - /cli-commands/npm-stop
10 - /cli-commands/stop
11 - /cli-documentation/cli-commands/npm-stop
12 - /cli-documentation/cli-commands/stop
13 - /cli-documentation/commands/npm-stop
14 - /cli-documentation/commands/stop
15 - /cli-documentation/npm-stop
16 - /cli-documentation/stop
17 - /cli-documentation/v11/cli-commands/npm-stop
18 - /cli-documentation/v11/cli-commands/stop
19 - /cli-documentation/v11/commands/npm-stop
20 - /cli-documentation/v11/commands/stop
21 - /cli-documentation/v11/npm-stop
22 - /cli-documentation/v11/stop
23 - /cli/cli-commands/npm-stop
24 - /cli/cli-commands/stop
25 - /cli/commands/npm-stop
26 - /cli/commands/stop
27 - /cli/npm-stop
28 - /cli/stop
29 - /cli/v11/cli-commands/npm-stop
30 - /cli/v11/cli-commands/stop
31 - /cli/v11/commands/stop
32 - /cli/v11/npm-stop
33 - /cli/v11/stop
34 - /commands/npm-stop
35 - /commands/stop
36 ---
37
38 ### Synopsis
39
40 ```bash
41 npm stop [-- <args>]
42 ```
43
44 ### Description
45
46 This runs a predefined command specified in the "stop" property of a package's "scripts" object.
47
48 Unlike with [npm start](/cli/v11/commands/npm-start), there is no default script that will run if the `"stop"` property is not defined.
49
50 ### Example
51
52 ```json
53 {
54 "scripts": {
55 "stop": "node bar.js"
56 }
57 }
58 ```
59
60 ```bash
61 npm stop
62
63 > npm@x.x.x stop
64 > node bar.js
65
66 (bar.js output would be here)
67
68 ```
69
70 ### Configuration
71
72 #### `ignore-scripts`
73
74 - Default: false
75 - Type: Boolean
76
77 If true, npm does not run scripts specified in package.json files.
78
79 Note that commands explicitly intended to run a particular script, such as `npm start`, `npm stop`, `npm restart`, `npm test`, and `npm run-script` will still run their intended script if `ignore-scripts` is set, but they will _not_ run any pre- or post-scripts.
80
81 #### `script-shell`
82
83 - Default: '/bin/sh' on POSIX systems, 'cmd.exe' on Windows
84 - Type: null or String
85
86 The shell to use for scripts run with the `npm exec`, `npm run` and `npm init <package-spec>` commands.
87
88 ### See Also
89
90 - [npm run-script](/cli/v11/commands/npm-run-script)
91 - [npm scripts](/cli/v11/using-npm/scripts)
92 - [npm test](/cli/v11/commands/npm-test)
93 - [npm start](/cli/v11/commands/npm-start)
94 - [npm restart](/cli/v11/commands/npm-restart)