1

我正在 Windows 机器上处理 Laravel 5 项目,但在尝试运行时遇到错误gulp-

events.js:85
      throw er; // Unhandled 'error' event
            ^
SyntaxError: c:/Users/Benjamin/PhpstormProjects/essex-youth-footbal/resources/assets/bower/jquery/dist/vendor.js: Deleting local variable in strict mode (13795:23316)
  13793 | // 

这是 gulpfile.js 中被抛出的条目:

mix.scripts([
        '/assets/bower/jquery/dist/jquery.min.js',
        '/assets/bower/bootstrap/dist/js/bootstrap.js',
        '/assets/js/main.js',
        '/assets/bower/bootbox/bootbox.js',
        '/assets/bower/vue/dist/vue.min.js',
        '/assets/bower/mustache/mustache.min.js',
        '/assets/bower/bootstrap-multiselect/dist/js/bootstrap-multiselect.js',
        '/assets/js/redactor.js',
        '/assets/js/vendor/redactor/fontcolor.js',
        '/assets/js/vendor/redactor/fontsize.js',
        '/assets/js/vendor/redactor/imagemanager.js',
        '/assets/js/vendor/redactor/video.js',
        '/assets/bower/remarkable-bootstrap-notify/dist/bootstrap-notify.min.js',
        '/assets/bower/jquery.maskedinput/dist/jquery.maskedinput.min.js',
        '/assets/bower/moment/min/moment.min.js',
        '/assets/bower/eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js',
        '/assets/bower/raphael/raphael-min.js',
        '/assets/bower/morrisjs/morris.min.js'
    ], 'public/js/vendor.js', 'resources');

我还注意到,任何已创建的合并 JS 文件都已"use strict"添加到代码中。

gulp在同一台计算机上的另一个项目中运行良好,并且该项目的 gulp 配置在另一台计算机上运行良好。有什么想法可能导致这种情况吗?

4

0 回答 0