I had this problem when instrumenting a huge amount of files, the script hangs on Instrumenting sources....
I believe is due to the fact, that parent process is not handling stdout from the child process. So if you have lots of files, this just fills up the buffer, and eventually, parent process stops accepting it, therefore hangs.
I had this problem when instrumenting a huge amount of files, the script hangs on
Instrumenting sources...
.I believe is due to the fact, that parent process is not handling
stdout
from the child process. So if you have lots of files, this just fills up the buffer, and eventually, parent process stops accepting it, therefore hangs.Not an expert on the node, tho :).
Adding this line seems it fixes the problem.