I’ve been using the Yeoman Angular generator for my recent angular projects. Excellent tool. But when I run
grunt serve
to generate my dist folder, I kept getting errors related to imagemin-gifsicle. Something along the lines of:
Loading “imagemin.js” tasks…ERROR
>> Error: Cannot find module ‘imagemin-gifsicle’
The solution, after a little googling was found here. User anuragd comments that simply running
npm install grunt-contrib-imagemin –save-dev
should solve the issue. Sure enough, it did. Thanks anuragd!