node/deps/npm/docs/content/commands/npm-stop.md
Ruy Adorno 1f287b04a2 deps: upgrade npm to 7.4.2
PR-URL: https://github.com/nodejs/node/pull/36953
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
2021-01-18 12:10:57 +01:00

719 B

title section description
npm-stop 1 Stop a package

Synopsis

npm stop [-- <args>]

Description

This runs a predefined command specified in the "stop" property of a package's "scripts" object.

Unlike with npm start, there is no default script that will run if the "stop" property is not defined.

Example

{
  "scripts": {
    "stop": "node bar.js"
  }
}
npm stop

> npm@x.x.x stop
> node bar.js

(bar.js output would be here)

See Also