node-tree-kill icon indicating copy to clipboard operation
node-tree-kill copied to clipboard

'taskkill' is not recognized as an internal or external command

Open nicojs opened this issue 4 years ago • 1 comments

👋 Hi, we're using tree-kill in Stryker. We occasionally see this error when running tree-kill on windows:

Command failed: taskkill /pid 14880 /T /F
'taskkill' is not recognized as an internal or external command,

It might not be reasonable to assume that taskkill exists on the path. Would a workaround to a simple process.kill be something that you're interested in? Or maybe someone knows another way to do this?

nicojs avatar Sep 01 '20 17:09 nicojs

Maybe we can try a second time with a hard file path (C:\...\system32\), or add that dir to the PATH for the command?

nicojs avatar Sep 05 '20 07:09 nicojs