Предисловие:
Версия Maven: 2.3.2
Версия внешнего плагина: 0.0.16
Версия узла: v0.12.9
npmVersion: 1.4.28
При сборке Плагин получил ошибку " const os = require ('os'); Использование const в строгом режиме. "
Большинство предложений, которые я обнаружил, об обновлении версии Node позже, чем v4.0.0. Но когда я пытаюсь обновить версию Node, мой URL создается с X64, *****http://nodejs.org/dist/v4.0.0/x64/node.exe*****
Но это должно быть http://nodejs.org/dist/v4.0.0/win-x64/node.exe
Я пытался включить тег nodeDownloadRoot , но не повезло.
Плагин Maven ниже
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>0.0.16</version>
<configuration>
<workingDirectory>src/main/node</workingDirectory>
</configuration>
<executions>
<execution>
<id>install node and npm</id>
<goals>
<goal>install-node-and-npm</goal>
</goals>
<configuration>
<nodeVersion>v0.12.9</nodeVersion>
<npmVersion>1.4.28</npmVersion>
</configuration>
</execution>
<execution>
<id>npm install</id>
<goals>
<goal>npm</goal>
</goals>
<!-- Optional configuration which provides for running any npm command -->
<configuration>
<arguments>install</arguments>
</configuration>
</execution>
<execution>
<id>grunt build</id>
<goals>
<goal>grunt</goal>
</goals>
<!-- optional: the default phase is "generate-resources" -->
<phase>generate-resources</phase>
</execution>
<execution>
<id>npm install production</id>
<goals>
<goal>npm</goal>
</goals>
<!-- Optional configuration which provides for running any npm command -->
<configuration>
<arguments>install --production --prefix ../build</arguments>
</configuration>
</execution>
</executions>
</plugin>
Любая помощь будет высоко ценится.