title: ec2 hangs on npm install
body: <p>I have free tier ec2 (1GB RAB, 500MB swap memory)</p>
  
  <p>When Jenkins performs <code>npm install</code> on the project, ec2 just hangs, stops responding and only reboot brings it to life. </p>
  
  <p>With <code>htop</code>, I analysed the situation and figured out that RAM just exhausts and chokes and additional swap memory I created doesn't help.</p>
  
  <p>Since I'm having a school project, I want to use free tier and somehow launch the project there (I tried <code>npm run build</code> too, but for now it has too many issues).</p>
  
  <p>I tried yarn too, but there's an issue with different versions of <code>babel-loader</code> being required by two other packages.</p>
  
  <p>Is there a way to perform <code>npm install</code> in an automatic fashion (so that Jenkins can do it with just a script shell) and without hanging ec2?</p>