2019-11-05 14:55:08 -05:00
|
|
|
---
|
|
|
|
title: npm-start
|
2020-11-01 07:54:36 +01:00
|
|
|
section: 1
|
2019-11-05 14:55:08 -05:00
|
|
|
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
|
2020-11-01 07:54:36 +01:00
|
|
|
use custom arguments when executing scripts. Refer to [`npm run-script`](/commands/npm-run-script) for more details.
|
2019-11-05 14:55:08 -05:00
|
|
|
|
|
|
|
### See Also
|
|
|
|
|
2020-11-01 07:54:36 +01:00
|
|
|
* [npm run-script](/commands/npm-run-script)
|
2019-11-05 14:55:08 -05:00
|
|
|
* [npm scripts](/using-npm/scripts)
|
2020-11-01 07:54:36 +01:00
|
|
|
* [npm test](/commands/npm-test)
|
|
|
|
* [npm restart](/commands/npm-restart)
|
|
|
|
* [npm stop](/commands/npm-stop)
|