Cannot find module child-process

javascript, node.js, npm

Solution

Use `require('child_process');` (with underscore, not hyphen).

Problem

"child-process" should be a built in node library. However, when I type "require('child-process') in the node shell, I get the error: "Cannot find module 'child-process'". Any ideas why this might be happening?

Original source