Tha*_*gor 3 javascript gulp browser-sync
运行gulp服务,会导致以下错误:
[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)
Run Code Online (Sandbox Code Playgroud)
只有在运行浏览器同步时才显示,这是我的浏览器同步配置:
browserSync({
notify: false,
server: {
baseDir: ['app']
},
watchOptions: {
debounceDelay: 250
},
startPath: "/" + view + ".html",
injectChanges: true,
logLevel: "debug",
browser: ["google chrome"]
});
Run Code Online (Sandbox Code Playgroud)
我正在运行以下版本:
节点:0.10.33 gulp:3.8.10浏览器同步:1.8.2(也试过1.9.x)
startpath是正确的并且存在,禁用ghostMode没有帮助.