title: GithubElectron: A JavaScript error occured in the browser process
body: <p>I installed "electron-packager" using npm and executed the command</p>
  
  <pre><code>electron-packager . Johnston --platform=darwin --arch=x64 --version=0.36.0
  </code></pre>
  
  <p>And then I when I run the "Johnston.app", this error showed up (I didn't even see the main window)</p>
  
  <blockquote>
    <p>Uncaught Exception: Error: Cannot find module 'electron'
        at Function.Module._resolveFilename (module.js:332:15)
        at Function.Module._load (module.js:282:25)
        at Module.require (module.js:361:17)
        at require (module.js:380:17)
        at Object. (/Users/David/Github/Johnston/Johnston-darwin-x64/Johnston.app/Contents/Resources/app/main.js:3:18)
        at Module._compile (module.js:426:26)
        at Object.Module._extensions..js (module.js:444:10)
        at Module.load (module.js:351:32)
        at Function.Module._load (module.js:306:12)
        at Object. (/Users/David/Github/Johnston/Johnston-darwin-x64/Johnston.app/Contents/Resources/atom.asar/browser/lib/init.js:104:10)</p>
  </blockquote>
  
  <p>Is there any solutions? Thanks!</p>