运行gulp时的终端错误

时间:2015-12-18 15:06:14

标签: javascript reactjs

enter image description here

运行gulp命令时出现这些错误。造成这种情况的原因是什么?

SyntaxError: Unexpected token :
  at exports.runInThisContext (vm.js:54:16)
  at Module._compile (module.js:375:25)
  at Object.Module._extensions..js (module.js:406:10)
  at Module.load (module.js:345:32)
  at Function.Module._load (module.js:302:12)
  at Module.require (module.js:355:17)
  at require (internal/module.js:13:17)
  at execute (/usr/local/lib/node_modules/gulp-cli/lib/versioned/^3.7.0/index.js:23:3)
  at Liftoff.handleArguments (/usr/local/lib/node_modules/gulp-cli/index.js:150:63)
  at Liftoff.<anonymous> (/usr/local/lib/node_modules/gulp-cli/node_modules/liftoff/index.js:192:16)

1 个答案:

答案 0 :(得分:2)

在第29行的:中看起来像;而不是gulpfile.js