Skip to content
This repository has been archived by the owner on Oct 19, 2020. It is now read-only.

unhandled error when running cordova-splash #29

Open
cryr opened this issue Apr 28, 2016 · 15 comments
Open

unhandled error when running cordova-splash #29

cryr opened this issue Apr 28, 2016 · 15 comments

Comments

@cryr
Copy link

cryr commented Apr 28, 2016

Im getting a error when i run cordova-splash in my root folder:

Checking Project & Splash

  V  platforms found: android
  V  splash.png exists
  V  config.xml exists

 Generating splash screen for android

events.js:141
      throw er; // Unhandled 'error' event
      ^

Error: spawn identify ENOENT
    at exports._errnoException (util.js:870:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
    at onErrorNT (internal/child_process.js:344:16)
    at doNTCallback2 (node.js:441:9)
    at process._tickCallback (node.js:355:17)

ImageMagick is installed.
nodejs version: 4.4.3

Any help is much appreciated.

@ocordsen
Copy link

I'm getting the same error. Is your operating system OSX, too? I'm also using cordova-icon, which works, so ImageMagick should be okay.

@tdascoli
Copy link

tdascoli commented May 13, 2016

I'm also getting the same error. OSX

@rodneicouto
Copy link

rodneicouto commented Jun 17, 2016

A get the same error. OSX

@Wolf-P
Copy link

Wolf-P commented Jul 6, 2016

Slightly different lines, but same problem (Windows 10)

Checking Project & Splash

✓ platforms found: android
✓ splash.png exists
✓ config.xml exists

Generating splash screen for android

events.js:141
throw er; // Unhandled 'error' event
^

Error: spawn identify ENOENT
at exports._errnoException (util.js:873:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
at onErrorNT (internal/child_process.js:344:16)
at nextTickCallbackWith2Args (node.js:442:9)
at process._tickCallback (node.js:356:17)

@Wolf-P
Copy link

Wolf-P commented Jul 10, 2016

I had the same problem with cordova icon, the solution there made this splash also work for me

Problem on my side was that imagemagick was not installed correctly. Make sure to check "Install legacy components (convert.exe etc)" and be sure that imagemagick comes before system32 in environmental variables path.

@karlperemil
Copy link

having the same issue

1 similar comment
@BruceGitHub
Copy link

having the same issue

@ghost
Copy link

ghost commented Sep 14, 2016

I had the same problem with OSX. I downloaded and installed imagemagick from a .pkg file, but it turned out that I needed to install with brew install imagemagick.

Hope it helps!

@ekntrtmz
Copy link

ekntrtmz commented Nov 13, 2016

Having the same problem. Tried to solve this with the suggestions Wolf-P made and reinstalled imagemagick with legacy components. But could not figure out how to check/ change environmental variables path.

@royston-c
Copy link

Thanks @Wolf-P. Installing the additional components fixed this issue for me on Windows 10.

@kgroat
Copy link

kgroat commented Dec 28, 2017

The correct solution is as @Wolf-P pointed out, but it might be good to have a meaningful error message when this issue arises.

@FabianGosebrink
Copy link

FabianGosebrink commented Jan 2, 2018

Having the same error. Imagemagick is installed and available over commandline. Icon exists which cordova-splash confirms. in the PATH the imagemagick entry comes at first before every other entry. Any recommendations?

Okay, I got it: The newer installations do not have the checkbox to install "legacy components" like "convert.exe". I had installed 7.0.7 before. Installing 7.0.1 gave me the checkbox in the installer again and then it worked.

@jesseppku
Copy link

jesseppku commented Jan 2, 2018 via email

@guilhermelirio
Copy link

The same error with me. Using Windows 10. How to solve?

Checking Project & Splash

  V  platforms found: android
  V  splash.png exists
  V  config.xml exists

 Generating splash screen for android

events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: spawn identify ENOENT
    at exports._errnoException (util.js:870:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
    at onErrorNT (internal/child_process.js:344:16)
    at doNTCallback2 (node.js:441:9)
    at process._tickCallback (node.js:355:17)

@sebj54
Copy link

sebj54 commented Apr 26, 2018

I had the same issue on Windows 10. What I did was:

  1. Uninstall ImageMagick
  2. Reinstall last version http://www.imagemagick.org/script/download.php#windows
  3. Be sure to check "Install legacy components (convert.exe etc)" and leave checked options as is
  4. After installation, open a new cmd so new APTH entry will be taken in account

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests