We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
npm stop
1 parent eb061ca commit 1ccd3dfCopy full SHA for 1ccd3df
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 foo.js"
27
+ }
28
+}
29
+```
30
31
+```bash
32
+npm stop
33
34
+> [email protected] stop
35
+> node bar.js
36
37
+(bar.js output would be here)
38
39
40
41
### See Also
42
0 commit comments