title: Angular CLI stopped working - Unexpected token {
body: <p>I used Angular CLI to create projects for a while and it was working fine. But when I tried to create a new project today I got an error when trying to serve it.</p>
  
  <pre><code>ng serve
  Unexpected token {
  SyntaxError: Unexpected token {
     at exports.runInThisContext (vm.js:53:16)
     at Module._compile (module.js:373:25)
     at Object.Module._extensions..js (module.js:416:10)
     at Module.load (module.js:343:32)
     at Function.Module._load (module.js:300:12)
     at Module.require (module.js:353:17)
     at require (internal/module.js:12:17)
     ...
  </code></pre>
  
  <p>Here is the full stack trace <a href="http://pastebin.com/71qU3G64" rel="noreferrer">http://pastebin.com/71qU3G64</a></p>
  
  <p>If I delete the node_modules directory and copy it from an old project it works, but that is not a long term solution.</p>