title: Angular 2 Aot Error: FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
body: <p>While Running Angular 2 AOT rollup I have faced above issue </p>
  
  <pre><code>&lt;--- Last few GCs ---&gt;
  
    144518 ms: Mark-sweep 1317.0 (1404.4) -&gt; 1317.0 (1404.4) MB, 1522.9 / 0.0 ms [allocation failure] [GC in old space requested].
    146029 ms: Mark-sweep 1317.0 (1404.4) -&gt; 1317.0 (1404.4) MB, 1511.6 / 0.0 ms [allocation failure] [GC in old space requested].
    147566 ms: Mark-sweep 1317.0 (1404.4) -&gt; 1321.2 (1403.4) MB, 1536.2 / 0.0 ms [last resort gc].
    149101 ms: Mark-sweep 1321.2 (1403.4) -&gt; 1325.4 (1403.4) MB, 1535.4 / 0.0 ms [last resort gc].
  
  
  &lt;--- JS stacktrace ---&gt;
  
  ==== JS stack trace =========================================
  
  Security context: 00000307662CFB61 &lt;JS Object&gt;
      2: _serializeMappings(aka SourceMapGenerator_serializeMappings) [D:\Project\node_modules\source-map\lib\source-map-generator.js:~291] [pc=000000F947F15D25] (this=000003C713710939 &lt;a SourceMapGenerator with map 00000042D86F6C51&gt;)
  </code></pre>
  
  <p>npm : 4.1.2</p>
  
  <p>node: 6.9.1</p>
  
  <p>OS: Windows 10</p>
  
  <p>I have tried options like installing latest npm and setting size of max_old_sapce_size but unable to set </p>
  
  <pre><code>node --max_old_space_size 4096
  </code></pre>
  
  <p>Error: missing value for flag --max_old_space_size of type int
  Try --help for options
  node: bad option: --max_old_space_size</p>
  
  <p>Unable to increase heap size? Any idea ?</p>