From 96ee378d33ade9bf54f60475032628f40790d7b8 Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@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