title: Electron application not launching
body: <p>I am new to Electron and was trying to create a simple application.  I dont want to install electron globally.  Rather, want it installed only in the application.  When I run npm run start, nothing happens.  Just eletron . gets displayed on the command line.  What is wrong with my code and anywhere where I can see the logs</p>
  
  <p>My appstructure:
  MusicPlayer</p>
  
  <ul>
  <li>app-> index.html</li>
  <li>node_modules</li>
  <li>main.js</li>
  <li>package.json</li>
  </ul>
  
  <p>Package.json is:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>{
    "name": "musicplayer",
    "version": "1.0.0",
    "description": "",
    "main": "main.js",
    "scripts": {
      "start": "electron ."
    },
    "author": "ABC",
    "devDependencies": {
      "electron": "^1.6.11"
    }
  
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>Main.js is:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const electron = require ('electron');
  const app = electron.app;
  const BrowserWindow = electron.BrowserWindow;
  var mainWindow = null;
  
  function createWindow()
  {
      mainWindow = new BrowserWindow({width:612,height:384});
      mainWindow.loadURL(`file://${__dirName}/app/index.html`);
  }
  
  app.on('ready', createWindow)</code></pre>
  </div>
  </div>
  </p>