Wpis z mikrobloga

Kolejne pytanie do mirków używających #gulp. Mam taki prosty plik gulpfile.js Niby wszystko działa, sass się kompiluje, reaguje na zmiany itd. problem występuje przy kompresowaniu obrazów. Wyskakuje błąd

F:\Webdevelop\standardhtml\nodemodules\stream-combiner2\nodemodules\readable-stream\lib_streamreadable.js
:740
stream.on('end', function () {
^

TypeError: stream.on is not a function
at Readable.wrap (F:\Web
develop\standardhtml\nodemodules\stream-combiner2\nodemodules\readable-stream\l
ib_stream
readable.js:740:10)
at wrap (F:\Webdevelop\standardhtml\nodemodules\stream-combiner2\index.js:67:29)
at combine (F:\Web
develop\standardhtml\nodemodules\stream-combiner2\index.js:29:18)
at Function.module.exports.obj (F:\Webdevelop\standardhtml\nodemodules\stream-combiner2\index.js:22:10)
at Imagemin.createStream (F:\Web
develop\standardhtml\nodemodules\imagemin\index.js:103:24)
at Imagemin.run (F:\Webdevelop\standardhtml\nodemodules\imagemin\index.js:77:20)
at DestroyableTransform.through.obj.percent (F:\Web
develop\standardhtml\nodemodules\gulp-imagemin\index.
js:56:12)
at DestroyableTransform.transform (F:\Webdevelop\standardhtml\nodemodules\through2-concurrent\through2-
concurrent.js:29:15)
at DestroyableTransform.Transform.read (F:\Webdevelop\standardhtml\nodemodules\through2\nodemodules\re
adable-stream\lib_stream
transform.js:159:10)
at DestroyableTransform.Transform.write (F:\Webdevelop\standardhtml\nodemodules\through2\nodemodules\r
eadable-stream\lib_stream
transform.js:147:83)

Moja struktura plików
standard_html
- src
-- images
-- styles
-- scripts
- build
-- images
-- styles
-- scripts
- index.html

Ma ktoś pomysł co jest nie tak? Google nie za bardzo mi pomaga.
Zawołam jeszcze #webdev
  • 4
@TeflonDon: Zainstaluj imagemin-pngquant w wersji 4
"imagemin-pngquant": "^4.2.0"

Parę dni temu wyszła v5, ale wygląda na to, że gulp-imagemin/stream-fs jeszcze z nią nie współpracuje.
Najlepiej po zmianie w package.json usuń cały katalog node_modules i odpal npm install