jekyll-styleguide icon indicating copy to clipboard operation
jekyll-styleguide copied to clipboard

Error events.js:72

Open vdecree opened this issue 10 years ago • 5 comments

Hey there,

This project looks great, just wanted to give it a go. However whenever I run gulp I'm getting:

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: spawn ENOENT
    at errnoException (child_process.js:998:11)
    at Process.ChildProcess._handle.onexit (child_process.js:789:34)

Any ideas?

vdecree avatar Jun 03 '14 09:06 vdecree

Thanks Mat,

I can't look into it deeply at the moment but I guess it has something to do with the require('child_process') in jekyll-build and jekyll-watch.

Can you try running one of these tasks alone?

gulp jekyll-watch

See what errors pop up, if any.

It is probably an issue with an incompatible version of Node, Ruby, Sass, etc. Try updating these.

Do you have Ruby (and Sass) installed? In a similar issue installing/updating Ruby Sass with gem install sass fixed it. See https://github.com/sindresorhus/gulp-ruby-sass/issues/9

davidhund avatar Jun 03 '14 10:06 davidhund

Also: see http://stackoverflow.com/questions/21856861/running-jekyll-as-a-child-process-in-gulp-node for possible fixes (if you're on Windows)

davidhund avatar Jun 03 '14 10:06 davidhund

Hi David,

I am indeed on windows and I found that last link did the trick. I changed the code to use exec and all seems be working good. Thank for that!

vdecree avatar Jun 03 '14 15:06 vdecree

I did also notice when running locally that where you've used markdown such as:

{: .message}

This doesn't appear in browser-sync to work, i just see the markdown syntax and not the output you'd expect. Is this something to do with how i'm viewing it locally?

** edit — after some testing although the exec fixed the errors, the tasks themselves don't appear to run when you use gulp to run everything.

vdecree avatar Jun 03 '14 20:06 vdecree

Hey @vdecree

The Grunt/Gulp stuff is a bit of a mess still. I need to clean this up better, apologies. I'll look into it and see if I can make it run better.

Does it work correctly if you by-pass the Grulp tasks and simply run a jekyll build --config=_config.dev.yml?

davidhund avatar Jun 05 '14 08:06 davidhund