We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
npm stop
1 parent 7dd0dfc commit 307b3bdCopy full SHA for 307b3bd
docs/content/commands/npm-stop.md
@@ -12,7 +12,31 @@ npm stop [-- <args>]
12
13
### Description
14
15
-This runs a package's "stop" script, if one was provided.
+This runs a predefined command specified in the "stop" property of a
16
+package's "scripts" object.
17
+
18
+Unlike with [npm start](/commands/npm-start), there is no default script
19
+that will run if the `"stop"` property is not defined.
20
21
+### Example
22
23
+```json
24
+{
25
+ "scripts": {
26
+ "stop": "node bar.js"
27
+ }
28
+}
29
+```
30
31
+```bash
32
+npm stop
33
34
+> npm@x.x.x stop
35
+> node bar.js
36
37
+(bar.js output would be here)
38
39
40
41
### See Also
42
0 commit comments