IntelliJ inspection saying module.exports does not exist for nodejs
In my case the bcrypt nodejs module has a file called "minimal-env.js" in its source which has the line var module;
in it. IntelliJ was treating this as the proper definition of "module" for whatever reason. Just commenting out this line fixed the problem. If this happens to you too, try going to the declaration of "module" (ctrl+left-click on it).
I know that's so late for it, but in case somebody else has the same issue.
In my case, I enabled the "Coding assistance for Node.js" under "Languages & Frameworks" but it doesn't work until I close all the projects and enable it on the welcome screen > configure > Preference
Hope it helps.
The under line is gone.