当我运行 cordova-splash 命令时会出现此错误。获取未处理的错误事件
>
> $ cordova-splash
>
> Checking Project & Splash
>
> ✓ platforms found: android
> ✓ splash.png exists
> ✓ config.xml exists
>
> Generating splash screen for Android
>
> events.js:85
> throw er; // Unhandled 'error' event
> ^
> Error: spawn ENOENT
at errnoException (child_process.js:980:11)
at Process.ChildProcess._handle.onexit (child_process.js:771:34)
最佳答案
我认为您在 config.xml 中有一些旧的启动屏幕配置。这些指向不存在的目录。因此请尝试删除旧的启动屏幕配置行,这可能会修复它。还可以尝试关闭终端窗口,然后在安装任何模块后重新打开它。 (正如 @Furqan 提到的 imagemagick 模块,您可能缺少它)。
关于android - cordova-splash 无法处理未处理的错误事件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33082224/