NPM-STOP(1)
π NPM-STOP(1) π
ok so bestie, you're looking at npm-stop β the manual page for npm-stop β and honestly? it's giving "small but mighty" energy. it stops a package, that's the whole vibe. let's get into it π
β¨ NAME β¨
npm-stop β stop a package π
πΈ Synopsis πΈ
npm stop [-- <args>]
literally that's it. look at her go π
π¦ Description π¦
okay so what this actually does is run a predefined command β the one you wrote in the "stop" property of your package's "scripts" object. that's the whole thing. you defined it, npm runs it. iconic behavior.
β οΈ important heads-up bestie: unlikenpm help start, there is no default script that will run if the"stop"property isn't defined. so if you didn't write one... nothing happens. no fallback, no safety net, no plan B. it's just silence π fr fr check yourpackage.jsonfirst.
π Example π
here's what it looks like in the wild, no cap:
{
"scripts": {
"stop": "node bar.js"
}
}
then you hit:
npm stop
and you get:
> npm@x.x.x stop
> node bar.js
(bar.js output would be here)
see how it echoes the script and then runs it? that's the moment. main character energy π₯
π Configuration π
π ignore-scripts
- Default:
false - Type: Boolean
if this is true, npm does not run scripts specified in package.json files. periodt.
π but here's the nuance (iykyk): commands that are 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. what they won't do is run any pre- or post-scripts. so the main script slays, the openers and the encores get benched π«Ά
also also also: setting ignore-scripts also disables .npm-extension execution, as if ignore-extension were set. two-for-one deal, not the fun kind π
π§ script-shell
- Default:
'/bin/sh'on POSIX systems,'cmd.exe'on Windows - Type:
nullor String
this is the shell used 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 startnpm help restart
ok that's the whole page bestie, you're officially educated π now go forth and stop some packages responsibly. mwah π«Άβ¨
signing off β this was npm-stop, straight outta NPM@12.2.1, dated October 2026 (yes, the October 2026 girlies, we exist), manual section NPM-STOP(1) π bye bye!!
π¦ 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