title: Node can't find modules without .js extension
body: <p>I have a file, <code>test.js</code> with these lines of code inside:</p>
  <pre><code>import {blabla} from &quot;./bla&quot;;
  
  async function dataGenerator() {
  ..........
  }
  
  (async() =&gt; {
    console.log('1')
    await dataGenerator()
    console.log('2')
  })()
  </code></pre>
  <blockquote>
  <p>Note: Ignore the import structure. It is just fictive for the question. In my file the imports are auto.</p>
  </blockquote>
  <p>When I'm trying to run from terminal with <code>node test.js</code> it returns error:</p>
  <pre><code>Cannot find module 'D:\bla' imported from D:\test.js
  </code></pre>
  <p>I have added into <code>package.json</code> the line: <code>&quot;type&quot;: &quot;module&quot;</code>. Without this it returns:</p>
  <pre><code>Cannot use import statement outside a module
  </code></pre>
  <p>I'm using node <code>v14</code>. How can I run the <code>test.js</code> without adding to all the imports <code>&quot;.js&quot;</code>. There are functions in functions in functions and is complicated to add <code>.js</code> extension. Is there any npm to run it?</p>