title: Losing my Mind with require('path') in Windows with jnode
body: <p>This might be a question that is already answered but none of the solutions works for me. 
  trying for 3 hours. </p>
  
  <p>i just want to use:</p>
  
  <blockquote>
    <p>import { dirname, basename } from 'path';  /* tried all ways of writting ./path + absolute path whatsoever */ </p>
  </blockquote>
  
  <p>and give it out in the console:</p>
  
  <blockquote>
    <p>console.log(dirname(__filename));</p>
  </blockquote>
  
  <p>also changed the variables on my pc. </p>
  
  <pre><code>&gt; Error: Cannot find module 'C:\Users\Bela\Desktop\DI\Try\test.js'
      at Function.Module._resolveFilename (internal/modules/cjs/loader.js:800:15)
      at Function.Module._load (internal/modules/cjs/loader.js:693:27)
      at Function.Module.runMain (internal/modules/cjs/loader.js:1051:12)
      at internal/main/run_main_module.js:16:11 {
  &gt;  code: 'MODULE_NOT_FOUND',
  &gt;  requireStack: []
  </code></pre>
  
  <p>}</p>
  
  <p>test.js and my node_modules are in the same directory.</p>
  
  <p>Thanks for help in advance  and sorry for that dumb question.</p>