grunt-iconizr icon indicating copy to clipboard operation
grunt-iconizr copied to clipboard

ENOTDIR

Open RobertCordes opened this issue 10 years ago • 7 comments

When I run the iconizr task, the SVG and PNG sprites get created successfully, but it doesn't create the CSS or SASS.

In the terminal it says the following: { [Error: spawn ENOTDIR] code: 'ENOTDIR', errno: 'ENOTDIR', syscall: 'spawn' }

RobertCordes avatar Apr 09 '14 17:04 RobertCordes

Hi @RobertCordes,

thanks for reporting this, and sorry that I can't be more responsive right now.

Could you please try to figure out if it's the PNG optimization that causes these troubles? You can easily do so by using the level: 0 configuration. Which platform are you on? Mac (if so, please also see #4)?

Cheers, Joschi

jkphl avatar Apr 10 '14 13:04 jkphl

I was having the same error and I set level: 0 in the config and that fixed it, the task was able to complete.

I have verbose set to 3, and this is the error i was getting before:

· Optimized PNG image "icons.png" ... ERROR { [Error: spawn ENOTDIR] code: 'ENOTDIR', errno: 'ENOTDIR', syscall: 'spawn' }

iansoper avatar Apr 11 '14 18:04 iansoper

hi @iansoper,

thanks for your report / confirmation!

May I assume that you are on a Mac as well? (@RobertCordes didn't answer my question yet ...) It seems that there are some Mac specific problems with one of the involved PNG optimization tools (pngcrush, pngquant and optipng). I could reproduce this on the MacBook of a friend of mine, but I didn't have the time to track it further down yet (unfortunately, it might be that I won't be able to do so for the next couple of weeks, as I'm usually not on a Mac and I'll go on a longer vacation shortly ... I'll see what I can do before ...).

level: 0 is practically disabling PNG optimization, so the fallback images will potentially be some bytes bigger that with the optimization enabled. They'll work anyway, however.

Thanks for your patience regarding this issue ...

jkphl avatar Apr 12 '14 13:04 jkphl

Hey, sorry that it took so long. Setting the level: 0 fixed it for me. Thank you so much!

RobertCordes avatar Apr 12 '14 14:04 RobertCordes

Hi @jkphl,

I’ve now tested it on two Macs and in both cases I’ve got the same error. But as I said, setting level: 0 fixed it. Thanks!

RobertCordes avatar Apr 18 '14 13:04 RobertCordes

Great that it works for you now, @RobertCordes. However, I'll still reopen this issue, as setting level to zero is not a proper long term solution. I'd rather have to fix the source of this problem ... ;)

jkphl avatar May 27 '14 18:05 jkphl

Yeah, you're right ;)

RobertCordes avatar May 27 '14 20:05 RobertCordes