Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gulp browser-sync ENOENT error

Running gulp serve, results in the following error:

[BS] [debug] Getting option: socket.path
[BS] [debug] Getting option: socket.namespace

events.js:72
        throw er; // Unhandled 'error' event
          ^
Error: spawn ENOENT
    at errnoException (child_process.js:1001:11)
    at Process.ChildProcess._handle.onexit (child_process.js:792:34)

It only appears, when running browser-sync, here's my browser-sync config:

browserSync({
    notify: false,
    server: {
        baseDir: ['app']
    },
    watchOptions: {
        debounceDelay: 250
    },
    startPath: "/" + view + ".html",
    injectChanges: true,
    logLevel: "debug",
    browser: ["google chrome"] 
});

I'm running the following versions:

node: 0.10.33 gulp: 3.8.10 browser-sync: 1.8.2 (also tried 1.9.x)

The startpath is correct and exists, disabling ghostMode doesnt help.

like image 213
Thargor Avatar asked Jun 23 '26 18:06

Thargor


1 Answers

Try this: browser: 'google-chrome'

like image 156
marcelocesar Avatar answered Jun 25 '26 08:06

marcelocesar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!