My question is rather simple. By default, it looks like WebStorm searches uses the `node_modules` directory to resolve packages that are imported with `require()`. This lets me Crtl+Click the module name to jump to the module file, which is awesome!
However, Node supports a NODE_PATH environment variable, which essentially tells Node to look in another directory for modules, too. That way, instead of writing something like `require('./../../lib/models/user')`, I can set my NODE_PATH to my lib directory and just write `require('lib/models/user')`, from anywhere.
Unfortunately, WebStorm then tells me that the module is not installed, and won't let me Ctrl+Click through to it.
Is there any way to tell WebStorm what the NODE_PATH variable is, so it will look in that directory, too?
Thanks so much!