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
I have a node/express app and would like to exit the process with exit code 1 (process.exit(1)) at certain scenarios. When i attempt to do that i get the following error,
9 verbose stack Exit status 1 9 verbose stack at EventEmitter.<anonymous> (/n/lib/node_modules/npm/lib/utils/lifecycle.js:214:16) 9 verbose stack at emitTwo (events.js:87:13) 9 verbose stack at EventEmitter.emit (events.js:172:7) 9 verbose stack at ChildProcess.<anonymous> (/n/lib/node_modules/npm/lib/utils/spawn.js:24:14) 9 verbose stack at emitTwo (events.js:87:13) 9 verbose stack at ChildProcess.emit (events.js:172:7) 9 verbose stack at maybeClose (internal/child_process.js:821:16) 9 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)`
On the other hand if i just exit without specifying an exit code like just process.exit() then it works fine.
In this node/express app i use promises and also spawn a child process which acts as a data source.
The text was updated successfully, but these errors were encountered:
I have a node/express app and would like to exit the process with exit code 1 (process.exit(1)) at certain scenarios. When i attempt to do that i get the following error,
9 verbose stack Exit status 1
9 verbose stack at EventEmitter.<anonymous>
(/n/lib/node_modules/npm/lib/utils/lifecycle.js:214:16)9 verbose stack at emitTwo (events.js:87:13)
9 verbose stack at EventEmitter.emit (events.js:172:7)9 verbose stack at ChildProcess.<anonymous>
(/n/lib/node_modules/npm/lib/utils/spawn.js:24:14)9 verbose stack at emitTwo (events.js:87:13)
9 verbose stack at ChildProcess.emit (events.js:172:7)9 verbose stack at maybeClose (internal/child_process.js:821:16)
9 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)`On the other hand if i just exit without specifying an exit code like just process.exit() then it works fine.
In this node/express app i use promises and also spawn a child process which acts as a data source.
The text was updated successfully, but these errors were encountered: