gruntjs - grunt-contrib-cssmin missing _stream_transform module -
i next error when trying run css minification gruntjs , have no clue why.
loading "cssmin.js" tasks...error >> error: cannot find module '_stream_transform
what origin of error message? i've search through cssmin.js file , can't find single reference module.
i've same problem. go grunt-contrib-cssmin/node_modules/maxmin/node_modules/gzip-size/node_modules/browserify-zlib , install readable-stream module
npm install readable-stream
then modify file grunt-contrib-cssmin/node_modules/maxmin/node_modules/gzip-size/node_modules/browserify-zlib/src/index.js
replace:
var transform = require('_stream_transform');
by:
var transform = require('readable-stream').transform;
it works me , hope help you.
gruntjs grunt-contrib-cssmin
No comments:
Post a Comment