<h1 dir="auto">Bug report</h1>




<p dir="auto"><strong>What is the current behavior?</strong><br>
I have just updated from <strong>webpack@4.29.3</strong> to <strong>webpack@4.29.4</strong> and I cannot install my modules anymore. I have the following error with @webassemblyjs/wast-parser. It stops installing.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1750734/52967115-56303400-33a9-11e9-9be8-466604f85f01.png"><img src="https://user-images.githubusercontent.com/1750734/52967115-56303400-33a9-11e9-9be8-466604f85f01.png" alt="screenshot 2019-02-18 18 16 14" style="max-width: 100%;"></a></p>
<p dir="auto">And when cancelling:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1750734/52967175-88419600-33a9-11e9-9432-440c5a44bd19.png"><img src="https://user-images.githubusercontent.com/1750734/52967175-88419600-33a9-11e9-9432-440c5a44bd19.png" alt="screenshot 2019-02-18 18 17 52" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong><br>
Having <strong>webpack@4.29.3</strong> and everything working, just delete node_modules and try to install again using <strong>webpack@4.29.4</strong>.</p>






<p dir="auto"><strong>What is the expected behavior?</strong><br>
To have my modules installed with <strong>webpack@4.29.4</strong> as I had with <strong>webpack@4.29.3</strong>. When installing using <strong>webpack@4.29.3</strong>, this is the result:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1750734/52967444-61379400-33aa-11e9-8e93-08a578f7ff16.png"><img src="https://user-images.githubusercontent.com/1750734/52967444-61379400-33aa-11e9-8e93-08a578f7ff16.png" alt="screenshot 2019-02-18 18 24 01" style="max-width: 100%;"></a></p>


<p dir="auto"><strong>Other relevant information:</strong><br>
webpack version:  4.29.4<br>
Node.js version: 11.10.0<br>
Operating System: Mac OSX<br>
Additional tools: VSCode</p>
<h1 dir="auto">Bug report</h1>
<p dir="auto">This only fails in a docker container during an npm install from my experience, but may just be a low memory failure. Does not fail locally.</p>
<p dir="auto"><strong>What is the current behavior?</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm ERR! Maximum call stack size exceeded`
The command '/bin/sh -c npm install' returned a non-zero code: 1"><pre class="notranslate"><code class="notranslate">npm ERR! Maximum call stack size exceeded`
The command '/bin/sh -c npm install' returned a non-zero code: 1
</code></pre></div>
<p dir="auto">log from the docker container:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/38010995/52886033-6b0e8c80-3149-11e9-9502-c16b031eb2df.png"><img src="https://user-images.githubusercontent.com/38010995/52886033-6b0e8c80-3149-11e9-9502-c16b031eb2df.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p>
<ol dir="auto">
<li>Install docker for mac</li>
<li>create a package.json with version of <code class="notranslate">v4.29.4</code></li>
<li>create a dockerfile and add latest node <code class="notranslate">node:lts-alpine</code></li>
<li>assure it runs <code class="notranslate">npm install</code></li>
</ol>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<ol dir="auto">
<li>container builds and runs npm install without error</li>
</ol>
<p dir="auto"><strong>Other relevant information:</strong><br>
webpack version:  v4.29.4<br>
Node.js version: v10.13.0 / npm 6.4.1<br>
Operating System: OSX 10.13.4<br>
Additional tools: Docker Version 2.0.0.3</p>