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?
巴扎黑2017-05-16 13:38:10
rm -rf node_modules/ && npm cache clean && npm i
It reminds you that your image task has ended. Should it be a problem with the next task?
某草草2017-05-16 13:38:10
Is the path of your gulp.src correct? Is it app.srcPath+'/image' written like this