B
B
Bill_Kim_912020-01-16 21:47:09
gulp.js
Bill_Kim_91, 2020-01-16 21:47:09

Error while executing command "gulp browser-sync" Couldn't open browser?

Hello.
Just started getting to know gulp.
I decided to screw browserSync and ran into an error
5e20af266a961830538661.jpeg
. Here is the gulpfile.js code itself

var gulp 		= require('gulp'),
  sass 		= require('gulp-sass'),
  browserSync = require('browser-sync');

gulp.task('sass', function() {
  return gulp.src('app/sass/**/*.sass')
  .pipe(sass())
  .pipe(gulp.dest('app/css'))
});

gulp.task('watch', function() {
  gulp.watch('app/sass/main.sass', gulp.parallel('sass'));
});

gulp.task('browser-sync', function() {
  browserSync.init({
    server: {
      baseDir: 'app'
    },
    notify: false,
  });
});

Tell me what's wrong.
The decision of type to specify the browser or to replace port did not help. I would be very happy if someone could give me a hint.
browser: 'chrome'
browser:'chrome.exe'
port: '8080'

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question