mirror of
https://github.com/nodejs/node.git
synced 2025-05-14 20:02:04 +00:00

PR-URL: https://github.com/nodejs/node/pull/35908 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Ruy Adorno <ruyadorno@github.com> Reviewed-By: Guy Bedford <guybedford@gmail.com>
29 lines
730 B
Markdown
29 lines
730 B
Markdown
---
|
|
title: npm-start
|
|
section: 1
|
|
description: Start a package
|
|
---
|
|
|
|
### Synopsis
|
|
|
|
```bash
|
|
npm start [-- <args>]
|
|
```
|
|
|
|
### Description
|
|
|
|
This runs an arbitrary command specified in the package's `"start"` property of
|
|
its `"scripts"` object. If no `"start"` property is specified on the
|
|
`"scripts"` object, it will run `node server.js`.
|
|
|
|
As of [`npm@2.0.0`](https://blog.npmjs.org/post/98131109725/npm-2-0-0), you can
|
|
use custom arguments when executing scripts. Refer to [`npm run-script`](/commands/npm-run-script) for more details.
|
|
|
|
### See Also
|
|
|
|
* [npm run-script](/commands/npm-run-script)
|
|
* [npm scripts](/using-npm/scripts)
|
|
* [npm test](/commands/npm-test)
|
|
* [npm restart](/commands/npm-restart)
|
|
* [npm stop](/commands/npm-stop)
|