What is the reason why the exec method of NodeJS's child_process module is stuck?

such a simple piece of code

   

has been stuck like this, who knows why? Or give me some ideas?

Mar.21,2021

is that your main program did not quit. Add process.exit ()

to the last line.
   

< hr >

can you guys tell me why?

Menu