title: JavaScript heap out of memory on AWS EC2
body: <p>I'm using an AWS EC2 instance with a t2.micro type and I'm trying to build my REST API that uses typescript by using the <code>tsc</code> command but I'm getting a memory issue.</p>
  <p><code>Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory </code></p>
  <p>I tried to use the <code>--max_old_space_size-1024</code> but it fixed nothing.</p>
  <ul>
  <li>NodeJS: v14.9.0</li>
  <li>NPM: v6.14.8</li>
  </ul>
  <p>Any suggestions guys?</p>