angular - 离子构建的问题
问题描述
我正在学习离子并且在编写命令时遇到以下问题
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 位
解决方案
转到项目中的 tsconfig.json 并搜索“target”属性,然后将其值更改为“es5”`
推荐阅读
- angular - 我只是将我的角度 4 移动到角度 5,现在它不再构建
- r - R 中的 as.Date(ww-yyyy)
- c++ - 使用存储在可变数据结构中的字段作为方法参数
- java - Selenium 与 Java、IntelliJ 和 Gradle - 驱动程序可执行文件的路径必须由 webdriver.gecko.driver 系统属性设置
- phpmyadmin - 显示 phpMyAdmin 中的所有表
- google-apps-script - 如何将文件从 MyDrive 移动到团队云端硬盘?
- cassandra - 如何监控 Cassandra 复制延迟?
- python - 我该如何改进呢?
- async-await - 为什么`Box
` 在使用 Tokio 和实验性 async/await 支持时不实现 `Sink` 特性? - c# - 根据值从表中创建组/块