Node.js Gulp SintaxError:意外标识符

Node.js Gulp SintaxError:意外标识符,node.js,npm,ecmascript-6,gulp,Node.js,Npm,Ecmascript 6,Gulp,我尝试在本地服务器上编辑一个Gulp应用程序。 我原以为它可以和ES6或版本兼容,但我努力了,什么也没做 我总是有这样的错误: /var/www/html/carros/gulpfile.js:11 let dev = true; ^^^ SyntaxError: Unexpected identifier at Module._compile (module.js:439:25) at Object.Module._extensions..js (module.js:4

我尝试在本地服务器上编辑一个Gulp应用程序。 我原以为它可以和ES6或版本兼容,但我努力了,什么也没做

我总是有这样的错误:

/var/www/html/carros/gulpfile.js:11
let dev = true;
    ^^^
SyntaxError: Unexpected identifier
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Liftoff.handleArguments (/usr/local/lib/node_modules/gulp/bin/gulp.js:116:3)
    at Liftoff.<anonymous> (/usr/local/lib/node_modules/gulp/node_modules/liftoff/index.js:198:16)
    at module.exports (/usr/local/lib/node_modules/gulp/node_modules/liftoff/node_modules/flagged-respawn/index.js:17:3)
    at Liftoff.<anonymous> (/usr/local/lib/node_modules/gulp/node_modules/liftoff/index.js:190:9)
/var/www/html/carros/gulpfile.js:11
让dev=true;
^^^
SyntaxError:意外的标识符
在模块处编译(Module.js:439:25)
在Object.Module.\u extensions..js(Module.js:474:10)
在Module.load(Module.js:356:32)
在Function.Module.\u加载(Module.js:312:12)
at Module.require(Module.js:364:17)
根据需要(模块js:380:17)
在Liftoff.handleArguments(/usr/local/lib/node_modules/gulp/bin/gulp.js:116:3)
在发射时。(/usr/local/lib/node_modules/gulp/node_modules/liftoff/index.js:198:16)
在module.exports(/usr/local/lib/node_modules/gulp/node_modules/liftoff/node_modules/flagged respawn/index.js:17:3)
在发射时。(/usr/local/lib/node_modules/gulp/node_modules/liftoff/index.js:190:9)

它很可能不支持
let
。您使用的是哪个nodejs版本?