Javascript – macOs Nodejs open the terminal by passing the command to execute
I have the following code that should open a terminal and run a command: import { ChildProcess, spawn, ChildProcessWithoutNullStreams, ChildProcessByStdio } from 'child_process'; import { Writable, Readable } from 'stream'; const terminal: ChildProcessWithoutNullStreams | ChildProcessByStdio<Writable, Readable, Readable> | ChildProcess =…