I'd like to start my NodeJS application using BrowserSync but it seems not working.
Error message : Error: listen EADDRINUSE
Edit #1:
I found this way to resolve my issue.
gulp.task('sync', ['start', 'watch'], function(cb) { browserSync.init({ files: ['**/*'], proxy: 'http://localhost:3000', port: 4000 }); }); gulp.task('start', function() { var called = false; return nodemon({ script: './bin/www', watch: ['Application.js'] }).on('start', function onStart() { if (!called) { cb(); } called = true; }).on('restart', function onRestart() { setTimeout(function reload() { browserSync.reload({ stream: false }); }, 500); }); });