I reinstalled the ‘imagemin-gifsicle’ module in the subdirectory located here ‘node_modules/gulp-imagemin/node_modules/imagemin/node_modules/’ and all was fixed.
I had the same problem. When running gulp for the first time it threw an ENOENT error for gifsicle. I had to delete the folder and re-run npm install.
Then the same thing happened with optipng. After doing the same thing (deleting the folder and re-running npm install) gulp completed.
Any idea why these modules would install incorrectly the first time round but install correctly on the second?
Optipng seems to have failed looking for a folder that doesn’t exist:
optipng-bin/vendor/optipng ENOENT
After reinstalling this doesn’t exist, but no error is thrown.