title: npm ERR! notarget No matching version found for type@module
body: <p>I get this issue  whenever I use docker build.
  I have a package.json with &quot;type&quot;: &quot;module&quot; in &quot;devDependencies&quot; and if remove &quot;type&quot;: &quot;module&quot;, I can use docker build. But then the app cannot find the index.ejs file, so I kinda need the &quot;type:module&quot; to stay. Any good ideas?</p>
  <pre><code>{
      &quot;name&quot;: &quot;mediasoup-custom&quot;,
      &quot;version&quot;: &quot;1.0.0&quot;,
      &quot;description&quot;: &quot;&quot;,
      &quot;main&quot;: &quot;app.js&quot;,
      &quot;scripts&quot;: {
      &quot;test&quot;: &quot;echo \&quot;Error: no test specified\&quot; &amp;&amp; exit 1&quot;,
      &quot;start&quot;: &quot;node src/app.js&quot;,
      &quot;mon&quot;: &quot;nodemon src/app.js&quot;,
      &quot;watch&quot;: &quot;watchify public/index.js -o public/bundle.js -v&quot;,
      &quot;type&quot;: &quot;module&quot;
       },
       &quot;author&quot;: &quot;&quot;,
       &quot;license&quot;: &quot;ISC&quot;,
      &quot;dependencies&quot;: {
      &quot;body-parser&quot;: &quot;^1.19.0&quot;,
      &quot;ejs&quot;: &quot;^3.1.6&quot;,
      &quot;express&quot;: &quot;^4.17.1&quot;,
      &quot;httpolyglot&quot;: &quot;^0.1.2&quot;,
      &quot;mediasoup&quot;: &quot;^3.7.1&quot;,
      &quot;mediasoup-client&quot;: &quot;^3.6.37&quot;,
      &quot;mongoose&quot;: &quot;^5.12.10&quot;,
      &quot;protoo-client&quot;: &quot;^4.0.4&quot;,
      &quot;protoo-server&quot;: &quot;^4.0.4&quot;,
      &quot;react&quot;: &quot;^17.0.2&quot;,
      &quot;request&quot;: &quot;^2.88.2&quot;,
      &quot;socket.io&quot;: &quot;^2.3.0&quot;
      
       },
      &quot;devDependencies&quot;: {
      &quot;@babel/cli&quot;: &quot;^7.14.3&quot;,
      &quot;@babel/core&quot;: &quot;^7.14.3&quot;,
      &quot;type&quot;: &quot;module&quot;
        },
        &quot;engines&quot;: {
        &quot;node&quot;: &quot;12.19.0&quot;
    }
  }
  
  </code></pre>
  <pre><code> &gt; [ 6/10] RUN npm install:
   #11 1.042 npm WARN read-shrinkwrap This version of npm is compatible with 
   lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll 
   try to do my best with it!
   #11 2.810 npm ERR! code ETARGET
   #11 2.817 npm ERR! notarget No matching version found for type@module.
   #11 2.818 npm ERR! notarget In most cases you or one of your dependencies are 
   requesting
   #11 2.818 npm ERR! notarget a package version that doesn't exist.
   #11 2.818 npm ERR! notarget 
   #11 2.818 npm ERR! notarget It was specified as a dependency of 'app'
   #11 2.818 npm ERR! notarget 
   #11 2.826 
   #11 2.826 npm ERR! A complete log of this run can be found in:
   #11 2.826 npm ERR!     /root/.npm/_logs/2021-09-09T22_41_21_395Z-debug.log
   ------
   executor failed running [/bin/sh -c npm install]: exit code: 1
  </code></pre>