Enable code completion for node_modules in WebStorm
<p>I'm new to WebStorm, and fairly new to Node development. I am working on an existing project, and want to have code completion for my node_modules. More specifically, I'm using Chai and WebStorm doesn't seem to find the <code>.have</code> member of my <code>expect.to</code> statement.</p>

<p>This is my code, simplified:</p>

<pre><code>var expect = require('chai').expect;

import {Customer} from '../../app/model/Customer.js';

describe('...', function() {
    it('...', function() {
        var customer = new Customer();
        expect(customer).to.have.property('name');
    });
});
</code></pre>

<p>I get squiggly lines under the <code>have</code> call, and WebStorm tells me <code>Unresolved variable have</code>.</p>

<p>If I F12 on the <code>to</code>, WebStorm takes me to another node module, shelljs, but I haven't imported that one.</p>

<p>Is this because WebStorm can't resolve everything in javascript?</p>

<p>I've enabled Coding Assistance for NodeJS as <a href="https://blog.jetbrains.com/webstorm/2015/11/node-js-coding-assistance-in-webstorm-11/" rel="noreferrer">per the docs</a>, but that made no difference.</p>