diff --git a/lib/monitor/run.js b/lib/monitor/run.js index c5f19b01..0edd372c 100644 --- a/lib/monitor/run.js +++ b/lib/monitor/run.js @@ -347,7 +347,7 @@ function kill(child, signal, callback) { // We are using the standalone 'windows-kill' executable to send the // standard POSIX signal 'SIGINT' to the node process. This fixes #1720. const windowsKill = path.normalize( - `${process.cwd()}/node_modules/nodemon/bin/windows-kill.exe` + `${__dirname}/../../bin/windows-kill.exe` ); // We have to detach the 'windows-kill' execution completely from this