From 238c96dfd1b0f0e0d70bc624e4335d0653813813 Mon Sep 17 00:00:00 2001 From: AnxietyisReal <96593068+AnxietyisReal@users.noreply.github.com> Date: Sun, 6 Aug 2023 21:23:25 +1000 Subject: [PATCH] Fix broken pipe error --- startWithYarn.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/startWithYarn.cjs b/startWithYarn.cjs index 1cf834e..6d4a530 100644 --- a/startWithYarn.cjs +++ b/startWithYarn.cjs @@ -1 +1 @@ -require('node:child_process').exec('yarn node dist/index.js', {windowsHide:true}, (error,stdout)=>{console.log(stdout); console.error(error)}) \ No newline at end of file +require('node:child_process').spawn('yarn node dist/index.js', {stdio: 'inherit', windowsHide: true, shell: true}) \ No newline at end of file