I'm using an Angular wep application launched from a git bash terminal with ng serve.
When I want to exit the Angular web app with a Ctrl+C, the Angular @ngtools using tree-kill as a dependency send the following command treeKill(this._typeCheckerProcess.pid, 'SIGTERM') with the good pid. But tree-kill try to kill process by a taskkill command not recognized by git bash.
The issue is that it's the process.platform (here win32) which is identified and not the prompt.
Therefore, to resolve this issue, we have to identified git bash terminal and execute the following command exec('tskill' + pid) instead.
Hi,
I'm using an Angular wep application launched from a git bash terminal with
ng serve
. When I want to exit the Angular web app with a Ctrl+C, the Angular @ngtools using tree-kill as a dependency send the following commandtreeKill(this._typeCheckerProcess.pid, 'SIGTERM')
with the good pid. But tree-kill try to kill process by a taskkill command not recognized by git bash. The issue is that it's the process.platform (here win32) which is identified and not the prompt.Therefore, to resolve this issue, we have to identified git bash terminal and execute the following command
exec('tskill' + pid)
instead.