'Unable to kill 'ng serve' in GitBash

I am using GitBash terminal and running an Angular application through local development server using ng serve. When I want to stop running the server, I try methods such as ctrl + c and even taskkill /pid 14892 /f, but nothing happens. It carries on running and the only way I can stop it is by closing GitBash and then killing the process through command line. I have a looked at this thread, but nothing works

Question

How do I kill ng serve and carry on using the GitBash terminal?



Solution 1:[1]

I tried doing it that way too. The only way that worked for me is that I killed Node.js JavaScript Runtime through task manager and it ended the Angular process.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Alexi Mellovich