Skip to content

ENOENT error #3

@dsernst

Description

@dsernst

I can't get this module to work. Every time I try to run the gulp task I get this error in my console:

➜  BC git:(spawn-mocha gulp test-mocha
[19:46:47] Using gulpfile /mnt/BC/gulpfile.js
[19:46:47] Starting 'test-mocha'...
events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: spawn /mnt/BC/node_modules/spawn-mocha-parallel/node_modules/.bin/mocha ENOENT
    at exports._errnoException (util.js:746:11)
    at Process.ChildProcess._handle.onexit (child_process.js:1046:32)
    at child_process.js:1137:20
    at process._tickCallback (node.js:355:11)

Here's the code trying to run it:

'use strict';

var gulp = require('gulp');
var mochaStream = require('spawn-mocha-parallel').mochaStream;
var mocha = mochaStream({concurrency: 10});

gulp.task('test-mocha', 'Runs the integration tests, in parallel!', function () {
  return gulp.src('test/integration/aaa.js', {read: true})
    .pipe(gulp.dest('aaaa'))
    .pipe(mocha)
    .on('error', console.error);
});

Do you have any idea why it is throwing back this ENOENT every time?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions