Open tommyc38 opened 3 years ago
I went through the gm packing in my node_modules/gm/lib/command.js and put a console.log(cmd) in the _spawn
function to see what was going on. If anyone has a better alternative, please let me know!
gm
uses the debug package. So you can run your app with the environment variable DEBUG=gm
for debug outputs.
So just run DEBUG=gm node src/main.js
@p-kuen, this doesn't work. I have verified the variable is set prior to bootstrapping my node program. Are you sure this is correct? I verified this a number of ways and even ran console.log(process.env)
by editing the node_module/gm/lib/command.js script. Everywhere showed DEBUG=gm was set yet nothing was logged.
Pretty sure, yes. On which OS do you run the command?
I am using OSx Big Sur
It's pretty tough to see where you are going wrong with more complex commands without being able to see the actual command being executed. I read the docs but didn't see anything.