From 0289a465d72beefb696a12928b91ef6fe47b9ba1 Mon Sep 17 00:00:00 2001 From: Remy Sharp Date: Wed, 30 Jun 2021 13:47:40 +0100 Subject: [PATCH] fix: allow windows users to install globally again Fixes: #1872 --- lib/monitor/run.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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