title: npm install results in "node not recognized as internal or external command"
body: <p>Both node and npm is installed prior to running npm install</p>
  <pre><code>$ node
  Welcome to Node.js v16.15.0.
  Type &quot;.help&quot; for more information.
  &gt;
  
  
  $ npm -v
  8.11.0
  </code></pre>
  <p>npm install results in &quot;node not recognized as internal or external command&quot;</p>
  <p>Console output:</p>
  <pre><code>$ npm install
  npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
  npm WARN deprecated source-map-resolve@0.6.0: See https://github.com/lydell/source-map-resolve#deprecated
  npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
  npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
  npm WARN deprecated sane@4.1.0: some dependency vulnerabilities fixednpm ERR! command failed
  npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node -e &quot;try{require('./postinstall')}catch(e){}&quot;
  npm ERR! 'node' is not recognized as an internal or external command,npm ERR! operable program or batch file.
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     C:\Users\sebas\AppData\Local\npm-cache\_logs\2022-05-27T21_00_18_704Z-debug-0.log
  </code></pre>
  <p>full verbose output: <a href="https://ctxt.io/2/AADgZHqcEg" rel="nofollow noreferrer">https://ctxt.io/2/AADgZHqcEg</a></p>
  <p>Further notes:</p>
  <ul>
  <li>The result is the same independent of whether I use cmd or git bash</li>
  <li>Removing node.js and reinstalling doesn't work</li>
  <li>Looking at the verbose output, it seems to be something to do with core-js?</li>
  </ul>
  <hr />
  <p>user variables</p>
  <p><a href="https://i.stack.imgur.com/NG2pH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NG2pH.png" alt="enter image description here" /></a></p>
  <p>system variables</p>
  <p><a href="https://i.stack.imgur.com/dxiUG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dxiUG.png" alt="enter image description here" /></a></p>
  <hr />
  <p>Please help, Im going insane ;_;</p>