.TH "NPM\-START" "1" "November 2023" "9.2.0" .SH "NAME" \fBnpm-start\fR .SH Synopsis .SH Description .P This runs a predefined command specified in the \fB"start"\fP property of .br a package's \fB"scripts"\fP object\. .P If the \fB"scripts"\fP object does not define a \fB"start"\fP property, npm .br will run \fBnode server\.js\fP\|\. .P Note that this is different from the default node behavior of running .br the file specified in a package's \fB"main"\fP attribute when evoking with .br \fBnode \.\fP .P As of \fBnpm@2\.0\.0\fP, you can .br use custom arguments when executing scripts\. Refer to \fBnpm run\-script\fP for more details\. .SH Example .RS 2 .nf { "scripts": { "start": "node foo\.js" } } .fi .RE .RS 2 .nf npm start > npm@x\.x\.x start > node foo\.js (foo\.js output would be here) .fi .RE .SH Configuration .SH See Also .RS 1 .IP \(bu 2 npm run\-script .IP \(bu 2 npm scripts .IP \(bu 2 npm test .IP \(bu 2 npm restart .IP \(bu 2 npm stop .RE