I\'m using WebStorm as the IDE.
Here\'s my folder structure and express.js insalled:
Under Settings > Languages & Frameworks > Node.js and NPM make sure to check Index internal node modules. After it's done indexing, it will recognize the require keyword.
Settings > Languages & Frameworks > Node.js and NPM
Index internal node modules