webdrivercss-adminpanel icon indicating copy to clipboard operation
webdrivercss-adminpanel copied to clipboard

Cannot find module 'optipng-bin'

Open monolithed opened this issue 7 years ago • 1 comments

➜ grunt serve:dist

running "concurrent:dist" (concurrent) task
    Warning: Running "imagemin:dist" (imagemin) task
    Warning: Cannot find module 'optipng-bin' Use --force to continue.

    Aborted due to warnings.

monolithed avatar Sep 11 '16 22:09 monolithed

This can be fixed by updating grunt-contrib-imagemine to ~1.0.1

diff --git a/package.json b/package.json
index b10b41f..6455036 100644
--- a/package.json
+++ b/package.json
@@ -35,7 +35,7 @@
     "grunt-contrib-copy": "~0.4.1",
     "grunt-contrib-cssmin": "~0.7.0",
     "grunt-contrib-htmlmin": "~0.1.3",
-    "grunt-contrib-imagemin": "~0.5.0",
+    "grunt-contrib-imagemin": "~1.0.1",
     "grunt-contrib-jshint": "~0.7.1",
     "grunt-contrib-uglify": "~0.2.0",
     "grunt-contrib-watch": "~0.5.2",

ashb avatar Mar 10 '17 17:03 ashb