@@ -478,7 +478,8 @@ router.get('/next/:projectName', async (req, res) => {
478478
479479 const nextTaskCommand = spawn ( 'task-master' , [ 'next' ] , {
480480 cwd : projectPath ,
481- stdio : [ 'pipe' , 'pipe' , 'pipe' ]
481+ stdio : [ 'pipe' , 'pipe' , 'pipe' ] ,
482+ shell : true
482483 } ) ;
483484
484485 let stdout = '' ;
@@ -998,7 +999,8 @@ router.post('/init/:projectName', async (req, res) => {
998999 // Run taskmaster init command
9991000 const initProcess = spawn ( 'npx' , [ 'task-master' , 'init' ] , {
10001001 cwd : projectPath ,
1001- stdio : [ 'pipe' , 'pipe' , 'pipe' ]
1002+ stdio : [ 'pipe' , 'pipe' , 'pipe' ] ,
1003+ shell : true
10021004 } ) ;
10031005
10041006 let stdout = '' ;
@@ -1101,7 +1103,8 @@ router.post('/add-task/:projectName', async (req, res) => {
11011103 // Run task-master add-task command
11021104 const addTaskProcess = spawn ( 'npx' , args , {
11031105 cwd : projectPath ,
1104- stdio : [ 'pipe' , 'pipe' , 'pipe' ]
1106+ stdio : [ 'pipe' , 'pipe' , 'pipe' ] ,
1107+ shell : true
11051108 } ) ;
11061109
11071110 let stdout = '' ;
@@ -1181,7 +1184,8 @@ router.put('/update-task/:projectName/:taskId', async (req, res) => {
11811184 if ( status && Object . keys ( req . body ) . length === 1 ) {
11821185 const setStatusProcess = spawn ( 'npx' , [ 'task-master-ai' , 'set-status' , `--id=${ taskId } ` , `--status=${ status } ` ] , {
11831186 cwd : projectPath ,
1184- stdio : [ 'pipe' , 'pipe' , 'pipe' ]
1187+ stdio : [ 'pipe' , 'pipe' , 'pipe' ] ,
1188+ shell : true
11851189 } ) ;
11861190
11871191 let stdout = '' ;
@@ -1233,7 +1237,8 @@ router.put('/update-task/:projectName/:taskId', async (req, res) => {
12331237
12341238 const updateProcess = spawn ( 'npx' , [ 'task-master-ai' , 'update-task' , `--id=${ taskId } ` , `--prompt=${ prompt } ` ] , {
12351239 cwd : projectPath ,
1236- stdio : [ 'pipe' , 'pipe' , 'pipe' ]
1240+ stdio : [ 'pipe' , 'pipe' , 'pipe' ] ,
1241+ shell : true
12371242 } ) ;
12381243
12391244 let stdout = '' ;
@@ -1332,7 +1337,8 @@ router.post('/parse-prd/:projectName', async (req, res) => {
13321337 // Run task-master parse-prd command
13331338 const parsePRDProcess = spawn ( 'npx' , args , {
13341339 cwd : projectPath ,
1335- stdio : [ 'pipe' , 'pipe' , 'pipe' ]
1340+ stdio : [ 'pipe' , 'pipe' , 'pipe' ] ,
1341+ shell : true
13361342 } ) ;
13371343
13381344 let stdout = '' ;
0 commit comments