You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note how the Node app still writes to the console after npm has terminated.
Expected Behavior
The desired behavior is as on Linux, where npm exits only when the Node app has ended.
Steps To Reproduce
See above
Environment
npm:
v10.7.0
Node.js:
v22.1.0
OS Name:
Microsoft Windows 11 Pro [Version 10.0.22631.3527]
PowerShell:
$PSVersionTable
Name Value
---- -----
PSVersion 7.4.2
PSEdition Core
GitCommitId 7.4.2
OS Microsoft Windows 10.0.22631
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
npm config:
; "builtin" config from C:\Program Files\nodejs\node_modules\npm\npmrcprefix = "C:\\Users\\Master\\AppData\\Roaming\\npm"; node bin location = C:\Program Files\nodejs\node.exe; node version = v22.1.0; npm local prefix = C:\temp\ctrl-c; npm version = 10.7.0; cwd = C:\temp\ctrl-c; HOME = C:\Users\Master; Run `npm config ls -l` to show all defaults.
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
On Windows, if Node.js app handles
SIGINT
, npm exits before the Node app does:delay.mjs
:package.js
:Running it:
Note how the Node app still writes to the console after
npm
has terminated.Expected Behavior
The desired behavior is as on Linux, where
npm
exits only when the Node app has ended.Steps To Reproduce
See above
Environment
npm:
v10.7.0
Node.js:
v22.1.0
OS Name:
Microsoft Windows 11 Pro [Version 10.0.22631.3527]
PowerShell:
The text was updated successfully, but these errors were encountered: