run

npm start

Shortcut for `npm run start` — runs the `start` script from package.json. If no `start` script is defined, npm falls back to `node server.js`.

npm start [-- <args>]

Common flags

Flag Purpose
-- Forward remaining arguments to the start script
--workspace <name> (-w) Start a specific workspace
--silent (-s) Suppress npm's own log framing
--ignore-scripts Skip prestart/poststart lifecycle hooks

Examples

npm start

Run the start script defined in package.json

npm start -- --port=4000

Pass a port flag through to the app

npm start -w apps/web

Start the workspace package apps/web

Gotcha

`npm start` is literal sugar for `npm run start`, so `prestart` and `poststart` hooks still fire. If you have no `start` script AND no `server.js`, the command errors out.

Related commands

← All npm commands · npm vs pnpm vs Yarn · Fix Node OOM