Closed jaegz closed 7 years ago
I'm getting the same error. I'm using:
windows 10 npm: 4.2.0 node: 7.5.0 gulp-imagemin: 3.0.3 also using cmder console
I'm getting them same error, window10 node v7.7.1 npm 4.1.2 gulp-imagemin 3.1.1
same here: win 10 node 6.5.0 npm 3.10.3
Same error.
Environment Details win 10 x64 node 7.7.1 npm 4.2.0 gulp 3.9.1
could 'fix' it by using yarn instead of npm to install dependencies.. not sure if this is a real fix, or just coincidence though
Same but if we try to pass arguments to imagemin it works:
.pipe(imagemin([], {}))
The install.js
script from some plugins did not run, so executing this fixed it for me:
node node_modules/jpegtran-bin/lib/install.js
node node_modules/optipng-bin/lib/install.js
@montalvomiguelo, in your example no plugin will run and therefore no images will be minified.
Have you try to install npm inside the gulp-imagemin directory:
cd path\to\the\project\node_modules\gulp-imagemin
npm i
Then re-try. Good luck ;)
crick64 commented on 7 Aug - This healp me. Thanks!
Well, it's not directly related to gulp-imagemin
. One of the imagemin plugins failed to install. Try re-installing, or check the error message upon installing and open an issue at the adequate repository.
Thanks a lot crick64. It works.
@crick64 Could you please make a brief interpretation, many thanks!
@crick64 Muchas grácias :)
Have you try to install npm inside the gulp-imagemin directory:
cd path\to\the\project\node_modules\gulp-imagemin npm i
Then re-try. Good luck ;)
Its work
Have you try to install npm inside the gulp-imagemin directory:
cd path\to\the\project\node_modules\gulp-imagemin npm i
Then re-try. Good luck ;)
Great, Its working. ...
@crick64 answer works.. but why?
Have you try to install npm inside the gulp-imagemin directory:
cd path\to\the\project\node_modules\gulp-imagemin npm i
Then re-try. Good luck ;)
Worked like a charm!! Thanks so much!
@crick64 answer works.. but why? In directory
\node_modules\gulp-imagemin
hadpackage.json
with dependencies for gulp-imagemin And commandnpm i
install all dependencies for current package
Running gulp-imagemin task throws the following error:
Environment Details npm 4.1.2 node 6.9.4 win32 x64 (windows 7) cmdr admin console gulp 3.9.1 gulp-imagemin 3.1.1
Gulp task