To find the file location for a node module require('module')._resolveFilename
can be used. Here is quick code snippet and its outcome.
file = require('module')._resolveFilename('react') console.log("react file location=" + file)
Outcome:
react file location=/usr/lib/node_modules/react/react.js