fix: allow windows users to install globally again (#1874)

Fixes: #1872
This commit is contained in:
Remy Sharp
2021-06-30 13:57:24 +01:00
committed by GitHub
parent 17aa92b57f
commit 3242215ec4

View File

@@ -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