Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Node/Gulp Help

Featured Replies

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

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 by rbrtsmith

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...

  • 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?

  • 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 by cherrydesigns

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.

  • 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 by cherrydesigns

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.

Could you let us know which OS you're using?

 

Also, is that the entire contents of your Gulpfile?

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.

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).

  • 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();
});
};"

  • 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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.