Windows 上可能的“pkill -f node”替代方案

Mad*_*Max 4 javascript windows reactjs yarnpkg

我目前正在尝试修复:

[nodemon] app crashed - waiting for file changes before starting...
Run Code Online (Sandbox Code Playgroud)

一种解决方案是运行pkill -f node,但这是 macOS 特定的事情。有什么建议么?

mat*_*usc 5

您可以taskkill按照评论中的建议使用。使用星号表示进程的部分名称。例如,要杀死所有 python 脚本:

taskkill -f -im python*

对于您的情况,解决方案可能如下所示:

taskkill -f -im 节点*