<p dir="auto">Why do i get this error<br>
<code class="notranslate">App threw an error when running [TypeError: Cannot read property 'start' of undefined]</code></p>
<p dir="auto">trying to run:  <code class="notranslate">npm start</code></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const electron = require('electron');
const app = electron.app;  // Module to control application life.
const BrowserWindow = electron.BrowserWindow;  // Module to create native browser window.
app.on('ready', function() {
  // Create the browser window.
  mainWindow = new BrowserWindow({width: 800, height: 600});

  // and load the index.html of the app.
  mainWindow.loadURL('file://' + __dirname + '/index.html');

})"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">electron</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'electron'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-s1">electron</span><span class="pl-kos">.</span><span class="pl-c1">app</span><span class="pl-kos">;</span>  <span class="pl-c">// Module to control application life.</span>
<span class="pl-k">const</span> <span class="pl-v">BrowserWindow</span> <span class="pl-c1">=</span> <span class="pl-s1">electron</span><span class="pl-kos">.</span><span class="pl-c1">BrowserWindow</span><span class="pl-kos">;</span>  <span class="pl-c">// Module to create native browser window.</span>
<span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'ready'</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
  <span class="pl-c">// Create the browser window.</span>
  <span class="pl-s1">mainWindow</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">BrowserWindow</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">width</span>: <span class="pl-c1">800</span><span class="pl-kos">,</span> <span class="pl-c1">height</span>: <span class="pl-c1">600</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>

  <span class="pl-c">// and load the index.html of the app.</span>
  <span class="pl-s1">mainWindow</span><span class="pl-kos">.</span><span class="pl-en">loadURL</span><span class="pl-kos">(</span><span class="pl-s">'file://'</span> <span class="pl-c1">+</span> <span class="pl-s1">__dirname</span> <span class="pl-c1">+</span> <span class="pl-s">'/index.html'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>

<span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div>
<p dir="auto">but if use</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const electron = require('electron');
const app = require('app');
const BrowserWindow = require('browser-window')"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">electron</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'electron'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'app'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-v">BrowserWindow</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'browser-window'</span><span class="pl-kos">)</span></pre></div>
<p dir="auto">it works nice</p>
<p dir="auto">Tested in:<br>
OSX El Capitan<br>
node: v4.0.0 ^ npm: 2.14.2 ^     "electron-prebuilt": "^0.35.4"<br>
node: v5.1.1 ^ npm: 3.3.12 ^     "electron-prebuilt": "^0.35.4"</p>
<p dir="auto">Recently I wanted to test how well electron works on fedora 23. It turns out the prebuilt version doesn't seem to work very well. I am getting this error on the <code class="notranslate">electron-quick-start</code> repo:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="➜  electron-quick-start git:(master) npm start

&gt; electron-quick-start@1.0.0 start /home/tom/Programming/electron-quick-start
&gt; electron main.js

App threw an error when running [TypeError: Cannot read property 'start' of undefined]
A JavaScript error occurred in the main process
Uncaught Exception:
TypeError: Cannot read property 'start' of undefined
    at Object.&lt;anonymous&gt; (/home/tom/Programming/electron-quick-start/main.js:7:23)
    at Module._compile (module.js:434:26)
    at Object.Module._extensions..js (module.js:452:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Object.&lt;anonymous&gt; (/home/tom/Programming/electron-quick-start/node_modules/electron-prebuilt/dist/resources/default_app/main.js:252:23)
    at Module._compile (module.js:434:26)
    at Object.Module._extensions..js (module.js:452:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
"><pre class="notranslate"><code class="notranslate">➜  electron-quick-start git:(master) npm start

&gt; electron-quick-start@1.0.0 start /home/tom/Programming/electron-quick-start
&gt; electron main.js

App threw an error when running [TypeError: Cannot read property 'start' of undefined]
A JavaScript error occurred in the main process
Uncaught Exception:
TypeError: Cannot read property 'start' of undefined
    at Object.&lt;anonymous&gt; (/home/tom/Programming/electron-quick-start/main.js:7:23)
    at Module._compile (module.js:434:26)
    at Object.Module._extensions..js (module.js:452:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Object.&lt;anonymous&gt; (/home/tom/Programming/electron-quick-start/node_modules/electron-prebuilt/dist/resources/default_app/main.js:252:23)
    at Module._compile (module.js:434:26)
    at Object.Module._extensions..js (module.js:452:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)

</code></pre></div>
<p dir="auto">I haven't tried to build electron manually on fedora 23 yet, but just wanted to let you know that the prebuit fails on my side. (x86-64, fedora 23, npm 3.3.12, node 5.1.1, electron 0.35 (as specified in the package.json))</p>