node module version conflict when installing modules for electron : <p>I'm trying to make an Electron application (<a href="https://electron.atom.io/" rel="noreferrer">https://electron.atom.io/</a>) that reads data from my serial port. I'm new to web technologies in general, I know some javascript, but I'm a c++ guy. </p>

<p>So I pulled in their quick-start from github, ran </p>

<pre><code>npm install &amp;&amp; npm start
</code></pre>

<p>With this easily working I tried to install and run serialport with</p>

<pre><code>npm install serialport
</code></pre>

<p>With that installed and running fine with a test file, I tried to combine the two and put <code>require('serialport')</code> in the index.html file. With this in there I get this error:</p>

<pre><code>Uncaught Error: The module '/home/user/Documents/Programing/Git/Arduino-mpu6050/electron-quick-start/node_modules/serialport/build/Release/serialport.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 51. This version of Node.js requires
NODE_MODULE_VERSION 53. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or`npm install`).
    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:173:20)
    at Object.Module._extensions..node (module.js:598:18)
    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:173:20)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at bindings (/home/user/Documents/Programing/Git/Arduino-mpu6050/electron-quick-start/node_modules/bindings/bindings.js:76:44)
    at Object.&lt;anonymous&gt; (/home/user/Documents/Programing/Git/Arduino-mpu6050/electron-quick-start/node_modules/serialport/lib/bindings.js:3:35)
</code></pre>

<p>Any ideas how to fix it? I'm not using two different versions of Node, why am I getting this error. </p>

<p>System OS info:</p>

<pre><code>Distributor ID: Ubuntu
Description:    Ubuntu 16.04.2 LTS
Release:    16.04
Codename:   xenial
</code></pre>
