title: How to access parent global variable in child process nodejs
body: <p>I have the following code: </p>
  
  <pre><code>import ChildProcess = require("child_process");
  global.abc = "token";
  ChildProcess.spawn("node", [path.join(process.cwd(), "./install-db.js")]);
  </code></pre>
  
  <p><strong>install-db.js</strong> in this file I am not able to get global variable, How should I use <strong>global.abc</strong> in this child process</p>