mirror of
https://github.com/nodejs/node.git
synced 2025-05-13 13:01:31 +00:00

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>
719 B
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)