davidhund / jekyll-styleguide

Use Jekyll to easily generate a (OO)CSS Styleguide/Pattern Library
http://davidhund.github.io/jekyll-styleguide/
51 stars 10 forks source link

Error events.js:72 #5

Open vdecree opened 10 years ago

vdecree commented 10 years ago

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?

davidhund commented 10 years ago

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 commented 10 years ago

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

vdecree commented 10 years ago

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 commented 10 years ago

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.

davidhund commented 10 years ago

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?