Where is child_process.js?

I am trying to debug a problem with forever / nodejs and I get this stack in the error log:

chdir(): Permission denied

events.js:72
    throw er; // Unhandled 'error' event
          ^
Error: spawn EACCES
  at errnoException (child_process.js:980:11)
  at Process.ChildProcess._handle.onexit (child_process.js:771:34)

It looks as if I should look at line 980 of a file called "child_process.js" to see where the error is. However, I cannot find such a file in the system even with "find". Did I miss something, or was it hidden?

+4
source share
1 answer

This is part of the source node.js. See https://github.com/joyent/node/blob/master/lib/child_process.js . I suggest that you can also step through the main node code using the node's built-in debugger or package like node-inspector .

+2
source

Source: https://habr.com/ru/post/1535814/


All Articles