Привет!Когда запускаю сборку npm run build вылезает вот эта ошибка,не знаю что делать,народ помогите !!!
λ npm run build
mishka@15.0.0 build E:\Курсы\mishka
gulp build
[19:36:11] Using gulpfile E:\Курсы\mishka\gulpfile.js
[19:36:11] Starting ‘build’…
[19:36:11] ‘build’ errored after 3.73 ms
[19:36:11] TypeError: gulp.hasTask is not a function
at E:\Курсы\mishka\node_modules\run-sequence\index.js:23:22
at Array.forEach ()
at verifyTaskSets (E:\Курсы\mishka\node_modules\run-sequence\index.js:17:11)
at runSequence (E:\Курсы\mishka\node_modules\run-sequence\index.js:130:2)
at E:\Курсы\mishka\gulpfile.js:92:3
at taskWrapper (E:\Курсы\mishka\node_modules\undertaker\lib\set-task.js:13:15)
at bound (domain.js:301:14)
at runBound (domain.js:314:12)
at asyncRunner (E:\Курсы\mishka\node_modules\async-done\index.js:55:18)
at _combinedTickCallback (internal/process/next_tick.js:132:7)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! mishka@15.0.0 build: gulp build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mishka@15.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\SPARTAK\AppData\Roaming\npm-cache_logs\2019-02-24T16_36_11_811Z-debug.log
“use strict”;
var gulp = require(“gulp”);
var less = require(“gulp-less”);
var plumber = require(“gulp-plumber”);
var postcss = require(“gulp-postcss”);
var autoprefixer = require(“autoprefixer”);
var server = require(“browser-sync”).create();
var minify = require(“gulp-csso”);
var rename = require(“gulp-rename”);
var imagemin = require(“gulp-imagemin”);
var webp = require(“gulp-webp”);
var run = require(“run-sequence”);
var include = require(“posthtml-include”);
var svgstore = require(“gulp-svgstore”);
var posthtml = require(“gulp-posthtml”);
var del = require(“del”);
gulp.task(“css”, function () {
return gulp.src(“source/less/style.less”)
.pipe(plumber())
.pipe(less())
.pipe(postcss([
autoprefixer()
]))
.pipe(gulp.dest(“build/css”))
.pipe(server.stream())
.pipe(minify())
.pipe(rename(“style.min.css”))
.pipe(gulp.dest(“build/css”));
});
gulp.task(“images”, function () {
return gulp.src(“build/img/*.{png,jpg,svg}”)
.pipe(imagemin([
imagemin.optipng({optimizationLevel: 3}),
imagemin.jpegtran({progressive: true}),
imagemin.svgo()
]))
.pipe(gulp.dest(“build/img”));
});
gulp.task(“webp”, function () {
return gulp.src(“build/img/*.{png,jpg}”)
.pipe(gulp.dest(“build/img”));
});
gulp.task(“copy”, function() {
return gulp.src([
“source/fonts/*.{woff,woff2}”,
“source/img/",
"source/js/”
], {
base: “source”
})
.pipe(gulp.dest(“build”));
});
gulp.task(“server”, function () {
server.init({
server: “build/”,
notify: false,
open: true,
cors: true,
ui: false
});
gulp.watch(“source/less/**/.less", gulp.series(“css”));
gulp.watch("build/.html”, [“html”]);
});
gulp.task(“html”, function() {
return gulp.src("*.html")
.pipe(posthtml([
include()
]))
.pipe(gulp.dest(“build”));
});
gulp.task(“sprite”, function() {
return gulp.src(“source/img/icon-*.svg”)
.pipe(svgstore({
inlineSvg: true
}))
.pipe(rename(“sprite.svg”))
.pipe(gulp.dest(“build/img”));
});
gulp.task(“start”, gulp.series(“css”, “server”));
gulp.task(“build”, function(done) {
run(“clean”, “copy”, “css”, “images”, “webp”, “sprite”, “html”, done);
});
gulp.task(“clean”, function() {
return del(“build”);
});