Node.js 使用gradlew-Pprod bootRepackage将Jhipster项目转换为war时出错
我试图使用此命令将Jhipster项目转换为war,但我得到了以下错误。命令为Node.js 使用gradlew-Pprod bootRepackage将Jhipster项目转换为war时出错,node.js,gradle,spring-boot,jhipster,Node.js,Gradle,Spring Boot,Jhipster,我试图使用此命令将Jhipster项目转换为war,但我得到了以下错误。命令为gradlew-Pprod bootRepackage events.js:141 throw er; // Unhandled 'error' event ^ at new HTMLParser (C:\kaisify-demo\node_modules\html-minifier\src\htmlparser.js:236:13) at minify (C:\
gradlew-Pprod bootRepackage
events.js:141
throw er; // Unhandled 'error' event
^
at new HTMLParser (C:\kaisify-demo\node_modules\html-minifier\src\htmlparser.js:236:13)
at minify (C:\kaisify-demo\node_modules\html-minifier\src\htmlminifier.js:861:3)
at Object.exports.minify (C:\kaisify-demo\node_modules\html-minifier\src\htmlminifier.js:1216:10)
at objectAssign.fileName (C:\kaisify-demo\node_modules\gulp-htmlmin\index.js:22:39)
at module.exports (C:\kaisify-demo\node_modules\tryit\tryit.js:8:9)
at minifyHtml (C:\kaisify-demo\node_modules\gulp-htmlmin\index.js:21:9)
at Transform.htmlminTransform [as _transform] (C:\kaisify-demo\node_modules\gulp-htmlmin\index.js:51:7)
at Transform._read (C:\kaisify-demo\node_modules\readable-stream\lib\_stream_transform.js:159:10)
at Transform._write (C:\kaisify-demo\node_modules\readable-stream\lib\_stream_transform.js:147:83)
at doWrite (C:\kaisify-demo\node_modules\readable-stream\lib\_stream_writable.js:319:64)
at writeOrBuffer (C:\kaisify-demo\node_modules\readable-stream\lib\_stream_writable.js:308:5)
at Transform.Writable.write (C:\kaisify-demo\node_modules\readable-stream\lib\_stream_writable.js:246:11)
at write (C:\kaisify-demo\node_modules\gulp\node_modules\readable-stream\lib\_stream_readable.js:623:24)
at flow (C:\kaisify-demo\node_modules\gulp\node_modules\readable-stream\lib\_stream_readable.js:632:7)
at DestroyableTransform.pipeOnReadable (C:\kaisify-demo\node_modules\gulp\node_modules\readable-stream\lib\_stream_readable.js:664:5)
at emitNone (events.js:67:13)
:gulpBuildWithOpts FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':gulpBuildWithOpts'.
> Process 'command 'node'' finished with non-zero exit value 1
这可能是nodeJS环境的问题,但您没有提供足够的详细信息,如jhipster版本、node版本。我正在使用nodeJS版本:v4.4.3和jhipster版本:v3.2.1OK,请尝试删除项目的
node\u modules
文件夹,然后运行nmp install
。您还可以再次运行bower install
,然后重新尝试构建