Electron app cant find sqlite3 module
<p>In my electron app I have installed sqlite3 via npm</p>

<pre><code>npm install sqlite3
</code></pre>

<p>But once i try to interact with the database it cant find the database, here is the log:</p>

<blockquote>
  <p>Uncaught Error: Cannot find module 'D:\play\electron-quick-start\node_modules\sqlite3\lib\binding\electron-v1.3-win32-x64\node_sqlite3.node'</p>
</blockquote>

<p>Here is JS code:</p>

<pre><code>console.log('whooooo');

var sqlite3 = require('sqlite3').verbose();
var db = new sqlite3.Database('../db/info.db');

db.serialize(function () {
    db.run("CREATE TABLE lorem (info TEXT)");   

    var stmt = db.prepare("INSERT INTO lorem VALUES (?)");
    for (var i = 0; i &lt; 10; i++) {
        stmt.run("Ipsum " + i);
    }
    stmt.finalize();

    db.each("SELECT rowid AS id, info FROM lorem", function (err, row) {
        console.log(row.id + ": " + row.info);
    });
});
db.close();
</code></pre>

<p>I also try in this way:</p>

<pre><code>npm install sqlite3 --build-from-source
</code></pre>

<p>but it fails to install!</p>

<p>Also, i am using Python3. How do you install a module to work with electron? </p>