title: Electron-packager missing module 'electron-prebuilt'
body: <p>I made a computer app using HTML, CSS and JS but when I try to convert that app to exe file using electron-packager it shows me error</p>
  
  <blockquote>
    <p>Cannot find module 'electron-prebuilt' from 'C://myapp/helloworld/'</p>
  </blockquote>
  
  <p>I am using windows.</p>
  
  <p>This is the code</p>
  
  <h1>Index.html</h1>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
  
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"&gt;
  
  &lt;head&gt;
      &lt;meta http-equiv="content-type" content="text/html; charset=UTF-8" /&gt;
  
          &lt;title&gt;Title&lt;/title&gt;
  
      &lt;link rel="stylesheet" type="text/css" media="screen" href="css/style.css" /&gt;
  
      &lt;script type="text/javascript" src="js/scripts.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="js/jquery-3.1.1.min.js"&gt;&lt;/script&gt;
  
      &lt;script&gt;
  
      &lt;/script&gt;
  
  
      &lt;!--[if IE 9]&gt;
          &lt;link rel="stylesheet" type="text/css" media="screen" href="css/style_ie9.css" /&gt;
      &lt;![endif]--&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;h1 class="heading"&gt;Hello World!&lt;/h1&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <h1>Main.js</h1>
  
  <pre><code>const {app, BrowserWindow} = require("electron");
  const path = require('path')
  const url = require('url')
  
  // Keep a global reference of the window object, if you don't, the window will
  // be closed automatically when the JavaScript object is garbage collected.
  let win
  
  function createWindow () {
    // Create the browser window.
    win = new BrowserWindow({width: 800, height: 600})
  
    // and load the index.html of the app.
    win.loadURL(url.format({
      pathname: path.join(__dirname, 'index.html'),
      protocol: 'file:',
      slashes: true
    }))
  
    // Open the DevTools.
    win.webContents.openDevTools()
  
    // Emitted when the window is closed.
    win.on('closed', () =&gt; {
      // Dereference the window object, usually you would store windows
      // in an array if your app supports multi windows, this is the time
      // when you should delete the corresponding element.
      win = null
    })
  }
  
  // This method will be called when Electron has finished
  // initialization and is ready to create browser windows.
  // Some APIs can only be used after this event occurs.
  app.on('ready', createWindow)
  
  // Quit when all windows are closed.
  app.on('window-all-closed', () =&gt; {
    // On macOS it is common for applications and their menu bar
    // to stay active until the user quits explicitly with Cmd + Q
    if (process.platform !== 'darwin') {
      app.quit()
    }
  })
  
  app.on('activate', () =&gt; {
    // On macOS it's common to re-create a window in the app when the
    // dock icon is clicked and there are no other windows open.
    if (win === null) {
      createWindow()
    }
  })
  
  // In this file you can include the rest of your app's specific main process
  // code. You can also put them in separate files and require them here.
  </code></pre>
  
  <h1>Package.json</h1>
  
  <pre><code>{
    "name": "Hello World!",
    "version": "0.1.0",
    "description": "",
    "main": "main.js",
    "scripts": {
      "start": "electron .",
      "package": "asar pack MyApp.app/Contents/Resources/app MyApp.app/Contents/Resources/app.asar",
      "build": "electron-packager . MyApp --ignore=node_modules/electron-* &amp;&amp; cp Icon.icns MyApp.app/Contents/Resources/atom.icns"
    },
    "author": "Kyle Robinson Young &lt;kyle@dontkry.com&gt; (http://dontkry.com)",
    "license": "MIT",
    "devDependencies": {
      "asar": "^0.6.1",
      "electron-packager": "^3.2.0",
      "electron-prebuilt": "^0.25.2"
    }
  }
  </code></pre>