The executed js code is as follows
gulp.task('image',function () {
gulp.src(app.srcPath + 'image/**/*')
.pipe(gulp.dest(app.devPath + 'image'))
.pipe($.imagemin())
.pipe(gulp.dest(app.prdPath + 'image'));
});
The error report that appears is as shown
It said that enoent.js under cross-spawn was not found? ? ? I would like to ask, what plug-in does cnpm need to install for this?
It reminds you that your image task has ended. Should it be a problem with the next task?
Is the path of your gulp.src correct? Is it app.srcPath+'/image' written like this