diff --git a/lib/helper.js b/lib/helper.js index 0f42f6c..d9de722 100644 --- a/lib/helper.js +++ b/lib/helper.js @@ -8,7 +8,7 @@ exports.findNodeProcess = function* (filterFn) { const command = isWin ? 'wmic Path win32_process Where "Name = \'node.exe\'" Get CommandLine,ProcessId' : // command, cmd are alias of args, not POSIX standard, so we use args - 'ps -eo "pid,args"'; + 'ps -wweo "pid,args"'; const stdio = yield runScript(command, { stdio: 'pipe' }); const processList = stdio.stdout.toString().split('\n') .reduce((arr, line) => {