Getting: SyntaxError: missing ) after argument list but can't find out whats wrong with hulpfile.js

前端 未结 2 2088
萌比男神i
萌比男神i 2021-01-26 01:00

Hi I\'m getting an error starting \'gulp default\' with the following gulp file. I cannot figure out whats wrong with the file.

var gulp = require(\'gulp\');
var         


        
2条回答
  •  日久生厌
    2021-01-26 01:15

    Tried to change that. It directly gives the same error on an other line:

    /Users/hmook/Documents/Development/lvdb/gulpfile.js:14
        .pipe(autoprefixer(browsers: ['last 2 versions', '> 5%', 'Firefox ESR']))
                           ^^^^^^^^
    
    SyntaxError: missing ) after argument list
        at createScript (vm.js:80:10)
        at Object.runInThisContext (vm.js:139:10)
        at Module._compile (module.js:599:28)
        at Object.Module._extensions..js (module.js:646:10)
        at Module.load (module.js:554:32)
        at tryModuleLoad (module.js:497:12)
        at Function.Module._load (module.js:489:3)
        at Module.require (module.js:579:17)
        at require (internal/module.js:11:18)
        at Liftoff.handleArguments (/usr/local/lib/node_modules/gulp/bin/gulp.js:116:3)
    

提交回复
热议问题