Skip to content

[BUG] SIGINT (ctrl+c) makes npm 7 print error log #2124

Closed
npm/run-script
#16
@jsg2021

Description

@jsg2021

Maybe related to #1591 & #1947

Current Behavior:

If I stop a process started by an npm script (with ctrl+c) , its stops, but npm prints error log.

Expected Behavior:

Normal (silent) exit

Steps To Reproduce:

execute any package script and ctrl+c on it.
example:

 "start": "sleep 100"
ERR! path /home/jonathan/Workspace/test
npm ERR! command failed
npm ERR! signal SIGINT
npm ERR! command sh -c sleep 100

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/jonathan/.npm/_logs/2020-11-05T05_52_10_653Z-debug.log

Environment:

  • OS: Fedora 33
  • Node: 14.15.0
  • npm: 7.0.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next stepsRelease 7.xwork is associated with a specific npm 7 release

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions