Почему не работает код gulpfile.js?

Недовно познакомился с NodeJS и gulp, хочу запустить автообновления браузера через gulp (livereload), а оно видает ошибку (все дополнения к gulp установил и разширения для браузера). Такая ошибка " [22:29:12] Using gulpfile E:\server\OSPanel\domains\karpow.lc\wp-content\themes\karpowst\gulpfile.js [22:29:12] Starting 'default'... [22:29:12] 'default' errored after 8.16 ms [22:29:12] Error: watching style.css: watch task has to be a function (optionally generated by using gulp.parallel or gulp.series) at Gulp.watch (E:\server\OSPanel\domains\karpow.lc\wp-content\themes\karpowst\node_modules\gulp\index.js:31:11) at E:\server\OSPanel\domains\karpow.lc\wp-content\themes\karpowst\gulpfile.js:11:7 at default (E:\server\OSPanel\domains\karpow.lc\wp-content\themes\karpowst\node_modules\undertaker\lib\set-task.js:13:15) at bound (domain.js:419:14) at runBound (domain.js:432:12) at asyncRunner (E:\server\OSPanel\domains\karpow.lc\wp-content\themes\karpowst\node_modules\async-done\index.js:55:18) at processTicksAndRejections (internal/process/task_queues.js:76:11) " Код guldfile.js

var gulp = require('gulp'), 
	livereload = require('gulp-livereload');

gulp.task('reload-css', function(){
	gulp.src('style.css')
		.pipe(livereload());
});

gulp.task("default", function(){
	livereload.listen();
	gulp.watch('style.css', ['reload-css']);
});


Ответы (0 шт):