首页 > 解决方案 > 离子构建的问题

问题描述

我正在学习离子并且在编写命令时遇到以下问题

ionic build

我想生成文件夹www

https://github.com/jquishpe/imagenionic/blob/master/error1.png

C:\Personal\ionic\platzi-music>ionic build
> ng.cmd run app:build
Generating ES5 bundles for differential loading...
An unhandled exception occurred: Call retries were exceeded
See "C:\Users\HITSS\AppData\Local\Temp\ng-sOfQFc\angular-errors.log" for further details.
[ERROR] An error occurred while running subprocess ng.

        ng.cmd run app:build exited with exit code 127.

        Re-running this command with the --verbose flag may provide more information. 

ionic build --verbose

https://github.com/jquishpe/imagenionic/blob/master/error2.png

文件内容 C:\Users\HITSS\AppData\Local\Temp\ng-sOfQFc\angular-errors.log

[error] Error: Call retries were exceeded
    at ChildProcessWorker.initialize (C:\Personal\ionic\platzi-music\node_modules\jest-worker\build\workers\ChildProcessWorker.js:193:21)
    at ChildProcessWorker.onExit (C:\Personal\ionic\platzi-music\node_modules\jest-worker\build\workers\ChildProcessWorker.js:263:12)
    at ChildProcess.emit (events.js:203:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)

解决问题的任何想法。提前致谢。

版本程序:

角 CLI:8.3.21

节点:12.8.0

npm:6.10.2

Windows 10 专业版 64 位

标签: angularionic4

解决方案


转到项目中的 tsconfig.json 并搜索“target”属性,然后将其值更改为“es5”`


推荐阅读