gulp编译报错

internal/streams/legacy.js:59
throw er; // Unhandled stream error in pipe.
^
GulpUglifyError: unable to minify JavaScript
at createError (/usr/local/node-v6.11.1-linux-x64/lib/node_modules/gulp-uglify/lib/create-error.js:6:14)
at apply (/usr/local/node-v6.11.1-linux-x64/lib/node_modules/lodash/_apply.js:16:25)
at wrapper (/usr/local/node-v6.11.1-linux-x64/lib/node_modules/lodash/_createCurry.js:41:12)
at /usr/local/node-v6.11.1-linux-x64/lib/node_modules/gulp-uglify/lib/minify.js:54:15
at DestroyableTransform._transform (/usr/local/node-v6.11.1-linux-x64/lib/node_modules/gulp-uglify/composer.js:10:23)
at DestroyableTransform.Transform._read (/usr/local/node-v6.11.1-linux-x64/lib/node_modules/readable-stream/lib/_stream_transform.js:182:10)
at DestroyableTransform.Transform._write (/usr/local/node-v6.11.1-linux-x64/lib/node_modules/readable-stream/lib/_stream_transform.js:170:83)
at doWrite (/usr/local/node-v6.11.1-linux-x64/lib/node_modules/readable-stream/lib/_stream_writable.js:406:64)
at writeOrBuffer (/usr/local/node-v6.11.1-linux-x64/lib/node_modules/readable-stream/lib/_stream_writable.js:395:5)
at DestroyableTransform.Writable.write (/usr/local/node-v6.11.1-linux-x64/lib/node_modules/readable-stream/lib/_stream_writable.js:322:11)

由于gulp-uglify包的版本号不正确导致,使用2.0.0版本

你可能感兴趣的:(工具)