Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

throw event error #26

Open
xiaomingming opened this issue Feb 26, 2016 · 1 comment
Open

throw event error #26

xiaomingming opened this issue Feb 26, 2016 · 1 comment

Comments

@xiaomingming
Copy link

It's my gulp config:

var gulp = require('gulp');
require('gulp-grunt')(gulp,{
    base: './',
    prefix: 'grunt-',
    verbose: false
});
gulp.task('tpl', function() {
    return gulp.start('grunt-tpl');
});

when i execute gulp tpl,my console throw event error:

$ gulp tpl
[18:36:26] Using gulpfile f:\A_local\vipMobile\gulpfile.js
[18:36:26] Starting 'tpl'...
[18:36:26] Starting 'grunt-tpl'...
[18:36:26] Finished 'tpl' after 4.99 ms
events.js:141
      throw er; // Unhandled 'error' event
      ^

Error: spawn .//grunt.cmd ENOENT
    at exports._errnoException (util.js:874:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
    at onErrorNT (internal/child_process.js:344:16)
    at doNTCallback2 (node.js:439:9)
    at process._tickCallback (node.js:353:17)
    at Function.Module.runMain (module.js:469:11)
    at startup (node.js:134:18)
    at node.js:961:3

But,grunt tpl run well.

@xiaomingming
Copy link
Author

Well,base should set null.It's my config problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant