title: How to fix "npm ERR! Maximum call stack size exceeded" in Google Cloud Build?
body: <p>My latest Google Cloud Builds are failing with the following error:</p>
  <pre><code>Step 3/16 : RUN npm i
   ---&gt; Running in 9b3b8df05c12
  npm notice 
  npm notice New patch version of npm available! 7.0.2 -&gt; 7.0.3
  npm notice Changelog: &lt;https://github.com/npm/cli/releases/tag/v7.0.3&gt;
  npm notice Run `npm install -g npm@7.0.3` to update!
  npm notice 
  npm ERR! Maximum call stack size exceeded
  </code></pre>
  <p>The last successful build was on October 17th. Since then, I have only made one commit which changed some typescript. Nothing in the dockerfile or NPM dependencies has changed.</p>
  <p>The relevant section of the Dockerfile looks like this:</p>
  <pre><code>FROM node AS minifier
  COPY MyProject/Client .
  RUN npm i
  RUN npm install -g grunt-cli rollup
  RUN grunt release
  </code></pre>
  <p>It looks like the issue is specifically with the <code>RUN npm i</code> command. Is this a bug? Is there anything I can do to fix it? I did retry the build, but encountered the same error.</p>