title: Cordova - ReferenceError globalThis is not defined
body: <p>I am following <a href="https://cordova.apache.org/?#getstarted" rel="nofollow noreferrer">Cordova's <em>Getting Started</em></a> guide but I'm already stuck at the 2nd step. When I try to create my project by typing <code>cordova create myApp</code>, it fails with the following error message:</p>
  <pre><code>C:\Users\foobar\AppData\Roaming\npm\node_modules\cordova\node_modules\queue-microta
  sk\index.js:5
    ? queueMicrotask.bind(globalThis)
                          ^
  
  ReferenceError: globalThis is not defined
      at Object.&lt;anonymous&gt; (C:\Users\foobar\AppData\Roaming\npm\node_modules\cordova
  \node_modules\queue-microtask\index.js:5:25)
      at Module._compile (internal/modules/cjs/loader.js:816:30)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
      at Module.load (internal/modules/cjs/loader.js:685:32)
      at Function.Module._load (internal/modules/cjs/loader.js:620:12)
      at Module.require (internal/modules/cjs/loader.js:723:19)
      at require (internal/modules/cjs/helpers.js:14:16)
      at Object.&lt;anonymous&gt; (C:\Users\foobar\AppData\Roaming\npm\node_modules\cordova
  \node_modules\run-parallel\index.js:4:24)
      at Module._compile (internal/modules/cjs/loader.js:816:30)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
  </code></pre>
  <p>I guess it's some sort of node or npm version problem. If possible though, I would rather not install a different version of node or npm, because I'm afraid it will break other projects otherwise. My node and npm versions are as follows:</p>
  <pre><code>node --version
  v11.15.0
  
  npm --version
  6.7.0
  </code></pre>