Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 719 Bytes

npm-stop.md

File metadata and controls

47 lines (34 loc) · 719 Bytes
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