NPM-START(1)
β¨ npm-start β¨
okay bestie, welcome to the npm-start(1) glow-up π this little icon is all about starting a package and honestly it's giving main character energy.
πΈ Synopsis
npm start [-- <args>]
π Description
So here's the vibe: this runs a predefined command that lives in the "start" property of your package's "scripts" object. that's it, that's the whole job π
but bestie, listen β if your "scripts" object doesn't define a "start" property, npm will just run node server.js for you. no cap, it's got a fallback π«
π«Ά lowkey important: this is different from the default node behavior of running the file specified in a package's"main"attribute when you evoke withnode .β so don't get it twisted!
and as of npm@2.0.0 (the blog post lives at https://blog.npmjs.org/post/98131109725/npm-2-0-0 if you wanna read the lore π), you can use custom arguments when executing scripts. refer to npm help run for more details, iykyk β¨
π¦ Example
{
"scripts": {
"start": "node foo.js"
}
}
npm start
> npm@x.x.x start
> node foo.js
(foo.js output would be here)
slay, look at it go π₯
β Configuration
π ignore-scripts
- Default:
false - Type: Boolean
if true, npm does not run scripts specified in package.json files. periodt.
π but here's the tea: commands explicitly intended to run a particular script β likenpm start,npm stop,npm restart,npm test, andnpm runβ will still run their intended script ifignore-scriptsis set. they just won't run any pre- or post-scripts alongside it. so the main event happens, the openers and closers stay home π
also, setting ignore-scripts disables .npm-extension execution too, as if ignore-extension were set. double whammy π«Ά
π§ script-shell
- Default:
'/bin/sh'on POSIX systems,'cmd.exe'on Windows - Type: null or String
the shell to use for scripts run with the npm exec, npm run and npm init <package-spec> commands. pick your fighter π
π See Also
npm help runnpm help scriptsnpm help testnpm help restartnpm help stop
and that's the whole page, bestie β go forth and npm start your little heart out ππ
this has been NPM-START(1) from npm NPM@12.2.1, dated October 2026 β signed off with love, sparkles, and zero missing flags πβ¨
π¦ where this page comes from
- arch rolling: npm 12.2.1-1 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms