title: How to include the path for the node binary npm was executed with
body: <p>Windows, VSC, Running <code>npm start</code> got this</p>
  
  <blockquote>
    <p>npm WARN lifecycle The node binary used for scripts is C:\Program
    Files\nodejs\node.exe but npm is using
    C:\somewhere\AppData\Roaming\npm\node_modules\node\bin\node.exe
    itself. Use the <code>--scripts-prepend-node-path</code> option to include the
    path for the node binary npm was executed with.</p>
  </blockquote>
  
  <p>I understand it means my local version is diff from the one in the PATH variable (C:\Program Files...). How do proceed to tell it to use <code>--scripts-prepend-node-path</code>?</p>
  
  <p>I played a trick by replacing the <code>C:\Program Files\nodejs</code> with <code>C:\somewhere\AppData\Roaming\npm\node_modules\node\bin</code> in PATH variable, it does pick up that new node.exe got <code>but there is no node binary in the current PATH</code>. Again recommend to use the <code>--scrip
  ts-prepend-node-path</code> option to include the path for the node binary npm was executed with </p>