jHipster 生产构建错误。无法运行任务:'yarn run webpack:prod'失败



我已经生成了 Monolithic应用程序使用 JHIPSTER 4.9.0 以及当我运行 mvn -pprod package 建失败了以下错误。

[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:yarn (webpack build prod) on project itob-p: Failed to run task: 'yarn run webpack:prod' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [Help 1]

我还重新安装了包含NPM软件包5.3.0的nodejs,还删除了文件夹node_modules,并在生成的文件夹上安装npm,但没有成功。我卡住了,如果我做错了什么,请指出问题。

到目前为止所做的事情:

1)操作系统= Windows 7 64bit

2)生成非政治应用程序的源代码[yo jhipster]

3)数据库postgrase

4)oauth2

5)MVN -PPROD软件包

6)在[dev]模式下成功部署在枢轴云铸造厂

请注意,在制造生产时会发生此问题。

这是此命令的完整堆栈。我无法识别和理解这个问题。请帮助我,如果您有任何建议,请分享。
这是错误的堆栈。

[INFO]
[INFO] --- frontend-maven-plugin:1.6:yarn (webpack build prod) @ itob-p ---
[INFO] Running 'yarn run webpack:prod' in C:Usershassnan.aliDesktopdel.mepostgres2
[INFO] yarn run v1.1.0
[INFO] $ yarn run cleanup && yarn run webpack:prod:main && yarn run clean-www
[ERROR] warning From Yarn 1.0 onwards, scripts don't require "--" for options to be forwarded. In a future version, any explicit "--" will be forwarde
d as-is to the scripts.
[INFO] Starting compilation using the angular compiler.
[ERROR] (node:7220) DeprecationWarning: Chunk.modules is deprecated. Use     Chunk.getNumberOfModules/mapModules/forEachModule/containsModule instead.
[INFO] Angular compilation done, starting webpack bundling.
[ERROR] TypeError: Cannot read property 'flags' of undefined
[ERROR]     at checkUnreachable     (C:Usershassnan.aliDesktopdel.mepostgres2node_modules@angulartsc-wrappednode_modulestypescriptlibtypescrip
t.js:20770:30)
[ERROR]     at bindChildrenWorker     (C:Usershassnan.aliDesktopdel.mepostgres2node_modules@angulartsc-    wrappednode_modulestypescriptlibtypescript.js:19014:17)
[ERROR]     at bindChildren (C:Usershassnan.aliDesktopdel.mepostgres2node_modules@angulartsc-wrappednode_modulestypescriptlibtypescript.js
:18969:17)
[ERROR]     at bind (C:Usershassnan.aliDesktopdel.mepostgres2node_modules@angulartsc-wrappednode_modulestypescriptlibtypescript.js:20199:2
1)
[ERROR]     at bindSourceFile (C:Usershassnan.aliDesktopdel.mepostgres2node_modules@angulartsc-wrappednode_modulestypescriptlibtypescript.
js:18588:17)
[ERROR]     at Object.bindSourceFile (C:Usershassnan.aliDesktopdel.mepostgres2node_modules@angulartsc-wrappednode_modulestypescriptlibtype
script.js:18539:9)
[ERROR]     at initializeTypeChecker (C:Usershassnan.aliDesktopdel.mepostgres2node_modules@angulartsc-wrappednode_modulestypescriptlibtype
script.js:44253:20)
[ERROR]     at Object.createTypeChecker (C:Usershassnan.aliDesktopdel.mepostgres2node_modules@angulartsc-wrappednode_modulestypescriptlibt
ypescript.js:23058:9)
[ERROR]     at getDiagnosticsProducingTypeChecker (C:Usershassnan.aliDesktopdel.mepostgres2node_modules@angulartsc-wrappednode_modulestypesc
riptlibtypescript.js:70194:93)
[ERROR]     at Object.getGlobalDiagnostics (C:Usershassnan.aliDesktopdel.mepostgres2node_modules@angulartsc-wrappednode_modulestypescriptli
btypescript.js:70570:53)
[ERROR]     at Tsc.typeCheck (C:Usershassnan.aliDesktopdel.mepostgres2node_modules@angulartsc-    wrappedsrctsc.js:166:23)
[ERROR]     at C:Usershassnan.aliDesktopdel.mepostgres2node_modules@angulartsc-wrappedsrcmain.js:122:23
[ERROR]     at process._tickCallback (internal/process/next_tick.js:109:7)
[ERROR] error Command failed with exit code 1.
[ERROR] error Command failed with exit code 1.
[ERROR] error Command failed with exit code 1.
[INFO] info Visit https://yarnpkg.com/en/docs/cli/run for documentation     about this command.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13:43 min
[INFO] Finished at: 2017-12-13T13:08:13+05:00
[INFO] Final Memory: 30M/208M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:yarn (webpack build prod) on project itob-p: Failed to run task: 'yarn ru
n webpack:prod' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

只需运行 yarn即可,如果需要,请对其进行更新。然后再试一次。它对我有用。

最新更新