From 89b7a470dd6aa01192a2064b75ed97b8e00b2dbb 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