Пытаюсь запустить. Выдает ошибку. Не могу понять на что она ссылается ?Гугл не помог.
Сам код
const gulp = require("gulp");
const sass = require("gulp-sass");
const less = require("gulp-less");
const stylus = require("gulp-stylus");
const sourcemaps = require("gulp-sourcemaps");
const autoprefixer = require("gulp-autoprefixer");
//sass
gulp.task('sasS', function() {
return gulp.src('./scss/*.scss')
.pipe(sourcemaps.init())
.pipe(sass())
.pipe(autoprefixer({
browsers: ['last 2 versions'],
cascade: false
}))
.pipe(sourcemaps.write())
.pipe(gulp.dest('./css/'))
});
//less
gulp.task('lesS', function() {
return gulp.src('./less/*.less')
.pipe(sourcemaps.init())
.pipe(less())
.pipe(autoprefixer({
browsers: ['last 2 versions'],
cascade: false
}))
.pipe(sourcemaps.write())
.pipe(gulp.dest('./css/'))
});
//stylus
gulp.task('stylusS', function() {
return gulp.src('./stylus/*.styl')
.pipe(sourcemaps.init())
.pipe(stylus())
.pipe(autoprefixer({
browsers: ['last 2 versions'],
cascade: false
}))
.pipe(sourcemaps.write())
.pipe(gulp.dest('./css/'))
});
gulp.task('default', gulp.parallel('sasS', 'lesS', 'stylusS'));
Ошибка:
D:\untitled\node_modules\gulp-autoprefixer\index.js:21
(async () => {
^
SyntaxError: Unexpected token (
at Object.exports.runInThisContext (vm.js:78:16)
at Module._compile (module.js:543:28)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (D:\untitled\gulpfile.js:6:22)
at Module._compile (module.js:571:32)