В консоле запускаю gulp default. Но выводит ошибку
AssertionError [ERR_ASSERTION]: Task never defined: browsersync
at getFunction (C:\Users\mmirxomitov\Desktop\test-gulp\node_modules\undertaker\lib\helpers\normalizeArgs.js:21:9)
at map (C:\Users\mmirxomitov\Desktop\test-gulp\node_modules\arr-map\index.js:20:14)
at normalizeArgs (C:\Users\mmirxomitov\Desktop\test-gulp\node_modules\undertaker\lib\helpers\normalizeArgs.js:30:10)
at Gulp.parallel (C:\Users\mmirxomitov\Desktop\test-gulp\node_modules\undertaker\lib\parallel.js:13:14)
at Object. (C:\Users\mmirxomitov\Desktop\test-gulp\gulpfile.js:32:19)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19) {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: false,
expected: true,
operator: '=='
}
Было установлена версия gulp 4.1.0
Код в package.json
{
"name": "test-gulp",
"version": "1.0.0",
"description": "test about gulp",
"main": "index.html",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Mirjalol",
"license": "ISC",
"devDependencies": {
"browser-sync": "^2.26.14",
"gulp": "^4.0.2",
"gulp-concat": "^2.6.1",
"gulp-file-include": "^2.3.0",
"gulp-sass": "^4.1.0"
}
}