events.js:160 throw er; // Unhandled 'error' event ^ GulpUglifyError: unable to minify JavaScript at createError (C:\Users\ะะปะตะบัะตะน\Desktop\LZ\Aplus_smm\node_modules\gulp-uglify\lib\create-error.js:6:14) at wrapper (C:\Users\ะะปะตะบัะตะน\Desktop\LZ\Aplus_smm\node_modules\gulp-uglify\node_modules\lodash\_createHybrid.js:87:15) at trycatch (C:\Users\ะะปะตะบัะตะน\Desktop\LZ\Aplus_smm\node_modules\gulp-uglify\minifier.js:26:12) at DestroyableTransform.minify [as _transform] (C:\Users\ะะปะตะบัะตะน\Desktop\LZ\Aplus_smm\node_modules\gulp-uglify\minifier.js:76:19) at DestroyableTransform.Transform._read (C:\Users\ะะปะตะบัะตะน\Desktop\LZ\Aplus_smm\node_modules\readable-stream\lib\_stream_transform.js:159:10) at DestroyableTransform.Transform._write (C:\Users\ะะปะตะบัะตะน\Desktop\LZ\Aplus_smm\node_modules\readable-stream\lib\_stream_transform.js:147:83) at doWrite (C:\Users\ะะปะตะบัะตะน\Desktop\LZ\Aplus_smm\node_modules\readable-stream\lib\_stream_writable.js:347:64) at writeOrBuffer (C:\Users\ะะปะตะบัะตะน\Desktop\LZ\Aplus_smm\node_modules\readable-stream\lib\_stream_writable.js:336:5) at DestroyableTransform.Writable.write (C:\Users\ะะปะตะบัะตะน\Desktop\LZ\Aplus_smm\node_modules\readable-stream\lib\_stream_writable.js:274:11) at DestroyableTransform.ondata (C:\Users\ะะปะตะบัะตะน\Desktop\LZ\Aplus_smm\node_modules\readable-stream\lib\_stream_readable.js:546:20) |
2 answers
You have registered the path there "C: \ Users \ Alex \ Desktop ..." Gulp is not friendly with the Cyrillic alphabet and may not work correctly. Write the name of the system folder "Alexey" in Latin
I had a similar situation. After changing the name of the system folder from Cyrillic to Latin, everything worked as it should
|
I think you first need to convert ES6 to ES5, and then minify.
- How? I not writing to es - Alexey
- All js is es. This little to understand what is wrong. We need at least another gulpfile.js - Nazar Kalytiuk
- Here is github.com/alexeyklykov/phpacademy/tree/master/gulp The simple fact is that everything worked fine, and suddenly this error appeared, I can not continue to do the project - Alexey
- maybe an error somewhere in the js files. - Nazar Kalytiuk
- need debugging .pipe (uglify (). on ('error', gutil.log)), but first install and connect var gutil = require ('gulp-util'); - Nazar Kalytiuk
|