在Hybris服务器上构建失败

时间:2017-10-10 16:39:12

标签: node.js ant build hybris

我在Windows 10 64位上使用Hybris 6.3。

最近我尝试在一个带有模块和附加组件的hybris系统上运行一个ant clean,但曾经用过的运行没有问题,当我尝试编译时没有失败。

错误不明确,我在this link运行ant clean all命令时附加了日志输出,我还在这里添加日志的最后几行希望弹出:

     [touch] Creating C:\Helvex\HYBRISCOMM6300P_8-70002554\hybris\temp\hybris\touch\smarteditwebservices_testsrctouch
      [echo] building extension 'personalizationsmartedit'...
      [echo] START of calling grunt packageSkipTests on C:\Helvex\HYBRISCOMM6300P_8-70002554\hybris\bin\ext-content\personalizationsmartedit
      [echo] failonerror=NOT SET, default=true, value=true
      [echo] Creating a link to C:\Helvex\HYBRISCOMM6300P_8-70002554\hybris\bin\ext-content\npmancillary\resources\npm\node_modules in C:\Helvex\HYBRISCOMM6300P_8-70002554\hybris\bin\ext-content\personalizationsmartedit\node_modules
      [exec] Unión creada para C:\Helvex\HYBRISCOMM6300P_8-70002554\hybris\bin\ext-content\personalizationsmartedit\node_modules <<===>> C:\Helvex\HYBRISCOMM6300P_8-70002554\hybris\bin\ext-content\npmancillary\resources\npm\node_modules
      [echo] Running grunt packageSkipTests
      [exec] (node:12228) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
      [exec] [4mRunning "jshint:all" (jshint) task[24m
      [exec] [33mWarning: Path must be a string. Received null Use --force to continue.[39m
      [exec]
      [exec] [31mAborted due to warnings.[39m
      [exec] (node:12228) DeprecationWarning: process.EventEmitter is deprecated. Use require('events') instead.

 BUILD FAILED
 C:\Helvex\HYBRISCOMM6300P_8-70002554\hybris\bin\platform\build.xml:20: The following error occurred while executing this line:
 C:\Helvex\HYBRISCOMM6300P_8-70002554\hybris\bin\platform\resources\ant\compiling.xml:90: The following error occurred while executing this line:
 C:\Helvex\HYBRISCOMM6300P_8-70002554\hybris\bin\platform\resources\ant\compiling.xml:148: The following error occurred while executing this line:
 C:\Helvex\HYBRISCOMM6300P_8-70002554\hybris\bin\platform\resources\ant\util.xml:20: The following error occurred while executing this line:
 C:\Helvex\HYBRISCOMM6300P_8-70002554\hybris\bin\platform\resources\ant\compiling.xml:155: The following error occurred while executing this line:
 C:\Helvex\HYBRISCOMM6300P_8-70002554\hybris\bin\platform\resources\ant\compiling.xml:297: The following error occurred while executing this line:
 C:\Helvex\HYBRISCOMM6300P_8-70002554\hybris\bin\platform\resources\ant\util.xml:144: The following error occurred while executing this line:
 C:\Helvex\HYBRISCOMM6300P_8-70002554\hybris\bin\ext-content\personalizationsmartedit\buildcallbacks.xml:65: The following error occurred while executing this line:
 C:\Helvex\HYBRISCOMM6300P_8-70002554\hybris\bin\ext-content\npmancillary\buildcallbacks.xml:276: exec returned: 3

我不清楚构建失败的原因,我注意到由于警告而中止的消息,但我不明白背后的原因。最后一行说exec返回:3但我不知道这意味着什么。

我最近在计算机上更改的唯一内容是更新Node.js以在其他平台上进行某些Web开发,但我不知道这是否会影响Hybris。

希望有人能够发现我的问题。

1 个答案:

答案 0 :(得分:1)

在我看来,它可能与Node.js的更新有关,因为我在日志中看到&#34; grunt&#34;被提到了。根据{{​​3}} grunt是通过npm(Node.js包管理器)安装和管理的。

我还在日志中看到以下内容:&#34; DeprecationWarning:process.EventEmitter已弃用。请改用(&#39; events&#39;)。&#34; 这似乎是一个Node.js问题,可以在这里看到:https://gruntjs.com/getting-started

如果我是你,我会尝试降级Node.js并查看问题是否重现。