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 read more