title: cannot find node js module mysql
body: <p>when i enter npm start in the cmd i got that error:</p>
  
  <pre><code>Error: Cannot find module 'mysql'
  at Function.Module._resolveFilename (module.js:547:15)
  at Function.Module._load (module.js:474:25)
  at Module.require (module.js:596:17)
  at require (internal/module.js:11:18)
  at Object.&lt;anonymous&gt; (C:\fmanagement\db_mysql\dbconnection.js:1:75)
  at Module._compile (module.js:652:30)
  at Object.Module._extensions..js (module.js:663:10)
  at Module.load (module.js:565:32)
  at tryModuleLoad (module.js:505:12)
  at Function.Module._load (module.js:497:3)
  </code></pre>
  
  <p>npm ERR! code ELIFECYCLE
  npm ERR! errno 1
  npm ERR! fmanagement@1.0.0 start: <code>node ./bin/www</code>
  npm ERR! Exit status 1
  npm ERR!
  npm ERR! Failed at the fmanagement@1.0.0 start script.
  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.</p>
  
  <p>npm ERR! A complete log of this run can be found in:
  npm ERR!     C:\Users\Flavio Luiz\AppData\Roaming\npm-cache_logs\2018-08-16T23_51_52_867Z-debug.log</p>
  
  <p>after that im install mysql with</p>
  
  <pre><code>npm install -g mysql
  </code></pre>
  
  <p>and that is my dbconnection.js:</p>
  
  <pre><code>var mysql = require('mysql');
  </code></pre>
  
  <p>var connection=mysql.createPool({</p>
  
  <p>host:'jdbc:mysql://localhost:3306/',
   user:'root',
   password:'',
   database:'fmanagement'</p>
  
  <p>});</p>
  
  <p>module.exports=connection;</p>
  
  <p>im newbie with node js. im doing something wrong?</p>