title: How do i solve 'Microsoft.AspNetCore.NodeServices.HostingModels.NodeInvocationException'
body: <p>I have just created new <code>ASP.NET Core Web Application</code>  using predefined templates e.g `File > New > Project > Asp.Net Core Web Application'.</p>
  
  <p>I select <code>.NET Core 2.0</code> with Angular template.
  I am using VS 2017.
  The node version installed on my machine is <code>4.2.2</code>
  NPM version is <code>2.14.7</code></p>
  
  <p>When i run i get exception</p>
  
  <blockquote>
    <p>{Microsoft.AspNetCore.NodeServices.HostingModels.NodeInvocationException:
    Unexpected token { SyntaxError: Unexpected token {
        at exports.runInThisContext (vm.js:53:16)
        at Module._compile (module.js:414:25)
        at Object.Module._extensions..js (module.js:442:10)
        at Module.load (module.js:356:32)
        at Function.Module._load (module.js:311:12)
        at Module.require (module.js:366:17)
        at require (module.js:385:17)
        at Object. (c:\users\MyApp\node_modules\@ngtools\webpack\src\index.js:30:10)
        at Module._compile (module.js:435:26)
        at Object.Module._extensions..js (module.js:442:10)    at Microsoft.AspNetCore.NodeServices.HostingModels.HttpNodeInstance.d__7<code>1.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---    at
    System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at
    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
    task)    at System.Runtime.CompilerServices.TaskAwaiter</code>1.GetResult() 
    at
    Microsoft.AspNetCore.NodeServices.HostingModels.OutOfProcessNodeInstance.d__13<code>1.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---    at
    System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at
    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
    task)    at System.Runtime.CompilerServices.TaskAwaiter</code>1.GetResult() 
    at
    Microsoft.AspNetCore.NodeServices.NodeServicesImpl.d__10<code>1.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---    at
    System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at
    Microsoft.AspNetCore.NodeServices.NodeServicesImpl.&lt;InvokeExportWithPossibleRetryAsync&gt;d__10</code>1.MoveNext()}</p>
  </blockquote>