You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: deps/npm/docs/content/commands/npm-start.md
+29-3Lines changed: 29 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,13 +12,39 @@ npm start [-- <args>]
12
12
13
13
### Description
14
14
15
-
This runs an arbitrary command specified in the package's `"start"` property of
16
-
its `"scripts"` object. If no `"start"` property is specified on the
17
-
`"scripts"` object, it will run `node server.js`.
15
+
This runs a predefined command specified in the `"start"` property of
16
+
a package's `"scripts"` object.
17
+
18
+
If the `"scripts"` object does not define a `"start"` property, npm
19
+
will run `node server.js`.
20
+
21
+
Note that this is different from the default node behavior of running
22
+
the file specified in a package's `"main"` attribute when evoking with
23
+
`node .`
18
24
19
25
As of [`[email protected]`](https://blog.npmjs.org/post/98131109725/npm-2-0-0), you can
20
26
use custom arguments when executing scripts. Refer to [`npm run-script`](/commands/npm-run-script) for more details.
0 commit comments