cmd

Node Child Process Exec Command Failed with error code 1

扶醉桌前 提交于 2020-08-26 16:30:28
问题 I am trying to execute some line using node js child process and getting error. Following is my code: let cmd : string = "code " + PROJECTS[value]; exec(cmd, function callback(error, stdout, stderr) { console.log("started console app"); }); ERROR : cmd:"C:\WINDOWS\system32\cmd.exe /s /c "code c:\Users\shana\Dropbox\code-settings-syn... (length: 82)" code:1 killed:false message:"Command failed: C:\WINDOWS\system32\cmd.exe /s /c "code c:\Users\shana\Dropbox\c... (length: 99)" signal:null stack