title: nw.js browser showing Uncaught ReferenceError: require is not defined
body: <p>I'm trying to run my exe using nw.js browser. I downloaded nw.js from this link <a href="https://github.com/nwjs/nw.js" rel="nofollow">https://github.com/nwjs/nw.js</a> then I created package.json file like this:</p>
  
  <pre><code> {
   "name": "sample",
   "version": "1.0.0",
   "description": "",
   "main": "index.html",
   "window": {
   "toolbar": false,
  "frame": false,
  "resizable": false,
  "show": true,
  "kiosk": true,
  "title": "kiosk example"
   },
  "webkit": {
  "plugin": true
    },
    "chromium-args": "--ppapi-flash-path=plugins/libpepflashplayer.so --ppapi-flash-version=17.0.0.134",
  "scripts": {
  "test": "echo \"Error: no test specified\" &amp;&amp; exit 1"
  },
  "author": "rohan",
  "license": "ISC",
  "dependencies": {
  "express": "^4.13.3",
  "gulp": "^3.9.0",
  "nw-flash-trust": "^0.3.0"
  }
  }
  </code></pre>
  
  <p>and my index.html is like this</p>
  
  <pre><code>&lt;html&gt; 
  &lt;head&gt; 
  
   &lt;script&gt;   
  
       function RunExe()   
       {   
  
  
   var child_process = require('child_process')
  , exec = child_process.exec
  , execSync = child_process.execSync
  , execFile = child_process.execFile
  , execFileSync = child_process.execFileSync
  ;
  
  exec('quiz.exe');
  
      } 
  
  &lt;/script&gt; 
  &lt;/head&gt; 
  &lt;body&gt; 
  &lt;h1&gt;Run a Program&lt;/h1&gt; 
  This script launch the file any Exe File&lt;p&gt; 
  &lt;button onclick="RunExe()"&gt;Run Exe File&lt;/button&gt; 
  &lt;/body&gt; 
  &lt;/html&gt; 
  </code></pre>
  
  <p>I placed my quiz.exe in same folder where nw.exe is present but when my index.html page loads and I click on "run exe file" button nothing happens. I checked console and it is showing this error message: "Uncaught ReferenceError: require is not defined". What am I doing wrong?</p>