我遇到了麻烦,我已经运行了npm install命令来安装npm,然后我运行了gulp,之后我得到了以下错误,我已经尝试了很多但没有得到任何解决方案。
events.js:160
throw er; // Unhandled 'error' event
^
GulpUglifyError: unable to minify JavaScript
at createError (C:\xampp\htdocs\test\node_modules\gulp-uglify\lib\create-error.js:6:14)
at apply (C:\xampp\htdocs\test\node_modules\lodash\_apply.js:16:25)
at wrapper (C:\xampp\htdocs\test\node_modules\lodash\_createCurry.js:41:12)
at C:\xampp\htdocs\test\node_modules\gulp-uglify\lib\minify.js:54:15
at DestroyableTransform._transform (C:\xampp\htdocs\test\node_modules\gulp-uglify\composer.js:10:23)
at DestroyableTransform.Transform._read (C:\xampp\htdocs\test\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:182:10)
at DestroyableTransform.Transform._write (C:\xampp\htdocs\test\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:170:83)
at doWrite (C:\xampp\htdocs\test\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:406:64)
at writeOrBuffer (C:\xampp\htdocs\test\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:395:5)
at DestroyableTransform.Writable.write (C:\xampp\htdocs\test\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:322:11)
package.json:
{
"private": true,
"scripts": {
"prod": "gulp --production",
"dev": "gulp watch"
},
"devDependencies": {
"bootstrap-sass": "^3.3.7",
"gulp": "^3.9.1",
"gulp-concat": "latest",
"gulp-help": "latest",
"gulp-ng-annotate": "latest",
"gulp-notify": "latest",
"gulp-rename": "latest",
"gulp-sourcemaps": "latest",
"gulp-uglify": "^3.0.0",
"gulp-watch": "latest",
"jquery": "^3.1.0",
"laravel-elixir": "^6.0.0-9",
"lodash": "^4.14.0",
"moment": "latest"
},
"dependencies": {
"angular-bootstrap-datetimepicker": "^1.1.2"
}
}