November 10, 201511 yr morning all, Can anyone help with this error in gulp? Users/richard/projects/website/public/../node_modules/font-awesome/fonts/* events.js:141 throw er; // Unhandled 'error' event ^ Error: spawn jekyll ENOENT at exports._errnoException (util.js:837:11) at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32) at onErrorNT (internal/child_process.js:344:16) at doNTCallback2 (node.js:429:9) at process._tickCallback (node.js:343:17) Any help would be appreciated, it's got me stumped
November 10, 201511 yr ENOENT Generally means not found. I'd advise against using icon font's now. Go with SVG they're superior in literally every aspect and it seems your issue has something to do with the icon fonts you are using. The script that comes with them is throwing an error that has not been properly caught, resulting in the unhandled error. Other than that it's kind of hard to narrow down the issue when we can see your project file structure or gulpfile. Edited November 10, 201511 yr by rbrtsmith
November 10, 201511 yr Author Here is the structure, I'm picking up from our coder who is off sick at the moment Edited November 10, 201511 yr by cherrydesigns
November 10, 201511 yr Ok, that looks like Jekyll to me. I think the ENOENT spawn error is caused by the fontawesome issue. Try removing that task from your gulpfile and run again and see what happens...
November 10, 201511 yr Author Ok, that looks like Jekyll to me. I think the ENOENT spawn error is caused by the fontawesome issue. Try removing that task from your gulpfile and run again and see what happens... Jekyll sounds right, again just trying to figure out what he's done. He's left us in a bit of "unknown" How do we remove the task from the gulp file?
November 10, 201511 yr Author here you go var gulp = require('gulp'); var runSequence = require('run-sequence');gulp.task('clean', require('./gulp/clean'));gulp.task('server', require('./gulp/server'));gulp.task('styles', ['jekyll'], require('./gulp/styles'));gulp.task('scripts', require('./gulp/scripts'));gulp.task('libs', require('./gulp/libs'));gulp.task('html', require('./gulp/html'));gulp.task('images', require('./gulp/images'));gulp.task('fonts', require('./gulp/fonts'));gulp.task('watch', require('./gulp/watch'));gulp.task('lint', require('./gulp/lint'));gulp.task('copy', require('./gulp/copy'));gulp.task('jekyll', require('./gulp/jekyll'));gulp.task('test', require('./gulp/test'));gulp.task('build', ['jekyll','styles','scripts','libs','html','images','fonts']);//---------------gulp.task('default', function(callback) {runSequence('clean','lint','build','watch','server',callback);});gulp.task('deploy', function(callback) {runSequence('clean','build','copy',callback);});gulp.task('production', ['deploy']); And heres the "fonts.js" var gulp = require('gulp'); var config = require('./config'); module.exports = function() { console.log(config.paths.root + '/../node_modules/font-awesome/fonts/*'); return gulp .src(config.paths.root + '/../node_modules/font-awesome/fonts/*') .pipe(gulp.dest(config.paths.build.fonts)); }; Edited November 10, 201511 yr by cherrydesigns
November 10, 201511 yr Ok in the build task try removing the fonts line so it reads gulp.task('build', [ 'jekyll', 'styles', 'scripts', 'libs', 'html', 'images' ]); Of course now your icon fonts won't work, but you should really be using SVG now anyway. There's a problem with the font-awesome module you are using.
November 10, 201511 yr Author Now we have this events.js:141 throw er; // Unhandled 'error' event ^ Error: spawn jekyll ENOENT at exports._errnoException (util.js:837:11) at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32) at onErrorNT (internal/child_process.js:344:16) at doNTCallback2 (node.js:429:9) at process._tickCallback (node.js:343:17) Edited November 10, 201511 yr by cherrydesigns
November 10, 201511 yr My initial thought that font awesome is causing the problem is wrong. The line above your initial error was just a console.log statement from the fonts.js file. Not sure why that is there tbh. But feel free to bring back in the font awesome thing. I suggest you find out where 'events.js' lives and look what's going on with line 141. I'm not sure if the ENOENT error below is a result of this.
November 11, 201511 yr Could you let us know which OS you're using? Also, is that the entire contents of your Gulpfile?
November 11, 201511 yr I've noticed Windows often runs into issues with this kinda stuff. I forgot all about it since I've never had any problems since switching to Mac.
November 11, 201511 yr Author Hi Guys, Im on OSX, version 10.11 El Capitan. Thats the full file to be honest. Edited November 11, 201511 yr by cherrydesigns
November 12, 201511 yr Are you working on a different machine that this was created on? If so, do you have the required ruby gems installed?Can you post the content of the Jekyll task (./gulp/jekyll.js).
November 12, 201511 yr Author Hi, thank you for helping - no, it was working just fine on this machine, only stopped working last week or so Here is the task "var gulp = require('gulp'); var config = require('./config');var cp = require('child_process');var refresh = require('gulp-livereload');module.exports = function(done) {return cp.spawn('jekyll', ['build'], {stdio: 'inherit'}).on('close', function () {refresh.reload();done();});};"
November 19, 201511 yr Author Morning all, Still stuck with this [09:29:04] Using gulpfile ~/projects/website/gulpfile.js [09:29:04] Starting 'default'... [09:29:04] Starting 'clean'... [09:29:04] Finished 'clean' after 10 ms [09:29:04] Starting 'lint'... [09:29:04] Finished 'lint' after 348 ms [09:29:04] Starting 'jekyll'... [09:29:04] Starting 'scripts'... [09:29:04] Starting 'libs'... [09:29:04] Starting 'html'... [09:29:04] Starting 'images'... events.js:141 throw er; // Unhandled 'error' event ^ Error: spawn jekyll ENOENT at exports._errnoException (util.js:837:11) at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32) at onErrorNT (internal/child_process.js:344:16) at doNTCallback2 (node.js:429:9) at process._tickCallback (node.js:343:17)
Create an account or sign in to comment