johnpapa / gulp-patterns

Playground for Gulp Recipes
501 stars 146 forks source link

fix(--debug) Error: Cannot find module #69

Closed turkingj closed 9 years ago

turkingj commented 9 years ago

When running the command

gulp serve-dev --debug

Its crashing out in the console with

[BS] [debug] Resolved www.google.com, setting online: true
...
Error: Cannot find module '/Users/j.../gulp/gulp-patterns/true=5858'

I think the debug on line 424 is evaluating to 'true'

nodeOptions.nodeArgs = [debug + '=5858'];

Awesome gulp code by the way, learning alot of new stuff!

Many Thanks

Jonny

johnpapa commented 9 years ago

yep.