A
A
Alexey Nikolaev2015-10-20 17:02:26
gulp.js
Alexey Nikolaev, 2015-10-20 17:02:26

gulp-imagemin not working. What could be the reason?

Good evening!
I have clean Win 8.1, installed Git, NodeJS 4.2.1 + npm, globally installed gulp (npm install -g gulp), all dependencies installed in the project, and this code in gulpfile.js:

gulp.task('images', function() {
  return gulp.src(globs.images)
    .pipe(imagemin({
      progressive: true,
      interlaced: true,
      svgoPlugins: [{removeUnknownsAndDefaults: false}, {cleanupIDs: false}]
    }))
    .pipe(gulp.dest(path.dist + 'images'))
    .pipe(browserSync.stream());
});

Sage is used as the basis. When I try to call a task, I see the following:
spoiler
a634a3dafdab45f797a540946bdf9bad.jpg

What is even more strange, on another similar system, everything works. I’ve been fighting all day, I still don’t understand what the reason is, because. Programmatically, everything is installed according to the instructions and simply should not work. Is it possible that this is a hardware issue or a windows version issue? I tried clearing the cache and creating new projects, to no avail. I believe that the problem is in the \ npm \ gulp \ imagemin node, since all other tasks (styles, scripts, etc) work as expected (respectively, all paths and directories are correct).
Has anyone experienced something similar?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kleilike, 2015-11-09
@kleilike

Have you tried reinstalling gulp-imagemin? If it works on another machine, try moving the package from there

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question