title: 'Cannot find module' when import in TypeScript
body: <p>I have a small problem with importing nodejs modules.
  For http module this syntax is working well:</p>
  
  <pre><code>import * as http from "http";
  </code></pre>
  
  <p>But when I try to do the same with 'mysql2' node.js module:</p>
  
  <pre><code>import * as database from "mysql2";
  </code></pre>
  
  <p>I gave me an error:</p>
  
  <pre><code>Cannot find module 'mysql2'
  </code></pre>
  
  <p>And refuse to compile that line.
  I even tried syntax like this (don't know why):</p>
  
  <pre><code>import {database} from 'mysql2';
  </code></pre>
  
  <p>But there's no error only when I write like this:</p>
  
  <pre><code>let database = require('mysql2');
  </code></pre>
  
  <p>In tsconfig.json I've set:</p>
  
  <pre><code>"module": "commonjs",
  "moduleResolution": "node",
  </code></pre>
  
  <p>And of course I've already installed the modules through npm in project folder:</p>
  
  <pre><code>npm install mysql2 --save
  </code></pre>
  
  <p>So my question is, why the import don't work and I have error in Visual Studio Code?</p>