title: Unable to use Node.js APIs in renderer process
body: <p>Unable to use any electron or node related operations in electron .
  Getting error process not defined.
  I Checked  at various places they guide to add node Support but that is already Done so stucked here
  My Main Application code is</p>
  <pre><code>const electron = require(&quot;electron&quot;);
  const { app, BrowserWindow } = electron;
  
  function createWindow() {
    const win = new BrowserWindow({
      width: 800,
      height: 600,
      webPreferences: { nodeIntegration: true },
    });
  
    win.loadFile(&quot;index.html&quot;);
  }
  
  app.whenReady().then(createWindow);
  
  app.on(&quot;window-all-closed&quot;, () =&gt; {
    if (process.platform !== &quot;darwin&quot;) {
      app.quit();
    }
  });
  
  app.on(&quot;activate&quot;, () =&gt; {
    if (BrowserWindow.getAllWindows().length === 0) {
      createWindow();
    }
  });
  </code></pre>
  <p>And Index.html</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;meta charset=&quot;UTF-8&quot; /&gt;
      &lt;title&gt;Hello World!&lt;/title&gt;
    &lt;/head&gt;
    &lt;body style=&quot;background: white&quot;&gt;
      &lt;h1&gt;Hello World!&lt;/h1&gt;
      &lt;p&gt;
        We are using node
        &lt;script&gt;
          document.write(process.versions.node);
        &lt;/script&gt;
        , Chrome
        &lt;script&gt;
          document.write(process.versions.chrome);
        &lt;/script&gt;
        , and Electron
        &lt;script&gt;
          document.write(process.versions.electron);
        &lt;/script&gt;
        .
      &lt;/p&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>