title: angular-cli + mvn : cannot launch build
body: <p>I generated my angular 2 project with angular-cli.
  I cannot upgrade to angular 4 because of project and customer constraints.</p>
  
  <p>I try to use frontend-maven-plugin to compile my angular app with maven, but when I launch mvn clean install, the build script fails.</p>
  
  <p>I got the error :</p>
  
  <blockquote>
    <p>[ERROR]
    ..pathToProject/node_modules/@ngtools/json-schema/src/schema-class-factory.js:34
    [ERROR]             result.push(...indices); [ERROR]<br>
     ^^^ [ERROR]  [ERROR] SyntaxError: Unexpected token ... [ERROR]     at
    exports.runInThisContext (vm.js:53:16) [ERROR]     at Module._compile
    (module.js:373:25) [ERROR]     at Object.Module._extensions..js
    (module.js:416:10) [ERROR]     at Module.load (module.js:343:32)
    [ERROR]     at Function.Module._load (module.js:300:12) [ERROR]     at
    Module.require (module.js:353:17) [ERROR]     at require
    (internal/module.js:12:17) [ERROR]     at Object.
    (..pathToProject/node_modules/@ngtools/json-schema/src/index.js:3:30)
    [ERROR]     at Module._compile (module.js:409:26) [ERROR]     at
    Object.Module._extensions..js (module.js:416:10) [ERROR]  [ERROR] npm
    ERR! Linux 4.4.0-92-generic [ERROR] npm ERR! argv
    "..pathToProject/node/node"
    "..pathToProject/node/node_modules/npm/bin/npm-cli.js"
    "run-script" "build" [ERROR] npm ERR! node v4.6.0 [ERROR] npm ERR! npm
    v2.15.9 [ERROR] npm ERR! code ELIFECYCLE [ERROR] npm ERR! hsmt@0.0.0
    build: <code>ng build</code> [ERROR] npm ERR! Exit status 1 [ERROR] npm ERR! 
    [ERROR] npm ERR! Failed at the hsmt@0.0.0 build script 'ng build'.
    [ERROR] npm ERR! This is most likely a problem with the hsmt package,
    [ERROR] npm ERR! not with npm itself. [ERROR] npm ERR! Tell the author
    that this fails on your system: [ERROR] npm ERR!     ng build [ERROR]
    npm ERR! You can get information on how to open an issue for this
    project with: [ERROR] npm ERR!     npm bugs hsmt</p>
  </blockquote>
  
  <p>My pom : </p>
  
  <pre><code>&lt;build&gt;
       &lt;plugins&gt;
      &lt;plugin&gt;
       &lt;groupId&gt;com.github.eirslett&lt;/groupId&gt;
       &lt;artifactId&gt;frontend-maven-plugin&lt;/artifactId&gt;
       &lt;version&gt;1.5&lt;/version&gt;
       &lt;executions&gt;
         &lt;execution&gt;
           &lt;id&gt;install node and npm&lt;/id&gt;
           &lt;goals&gt;
             &lt;goal&gt;install-node-and-npm&lt;/goal&gt;
           &lt;/goals&gt;
           &lt;configuration&gt;
             &lt;nodeVersion&gt;v4.6.0&lt;/nodeVersion&gt;
             &lt;npmVersion&gt;v2.15.9&lt;/npmVersion&gt;
           &lt;/configuration&gt;
         &lt;/execution&gt;
  
         &lt;execution&gt;
           &lt;id&gt;build&lt;/id&gt;
           &lt;goals&gt;
             &lt;goal&gt;npm&lt;/goal&gt;
           &lt;/goals&gt;
           &lt;configuration&gt;
             &lt;arguments&gt;run-script build&lt;/arguments&gt;
           &lt;/configuration&gt;
           &lt;phase&gt;generate-resources&lt;/phase&gt;
         &lt;/execution&gt;
  
       &lt;/executions&gt;
         &lt;/plugin&gt;
       &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p>My package.json :</p>
  
  <pre><code>{
    "name": "hsmt",
    "version": "0.0.0",
    "license": "MIT",
    "angular-cli": {},
    "scripts": {
      "ng": "ng",
      "start": "ng serve --proxy-config proxy.conf.json",
      "build": "ng build",
      "prod" : "ng build --prod",
      "test": "ng test",
      "pree2e": "webdriver-manager update --standalone false --gecko false",
      "e2e": "protractor",
      "prebuild": "npm install"
    },
  </code></pre>