Skip to content Skip to sidebar Skip to footer

Not Able To Kill Process In Node.js

I am working on a node script where I will be opening and closing the browser using child process but its opening the browser but not able to close it on pressing Ctrl + C. Here's

Solution 1:

try to use

setTimeout((function() {
        return process.abort();
    }), 5000);

or try

setTimeout((function() {
    return process.kill(process.pid);
}), 5000);

Post a Comment for "Not Able To Kill Process In Node.js"