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 tsc command but I'm getting a memory issue.
Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory 
I tried to use the --max_old_space_size-1024 but it fixed nothing.
- NodeJS: v14.9.0
- NPM: v6.14.8
Any suggestions guys?
 
     
    