hawx1993/hbuild

SyntaxError: Unexpected token

ZengTianShengZ opened this issue · 0 comments

when i cd /build and node build.js
The console prints an error

zengtianshengdeMacBook-Pro-3:build ZengTianSheng$ node build.js
/Users/bong/WebstromProjects2/hbuild-poj/build/build.js:22
const {util,resolve} = require('./util');
      ^

SyntaxError: Unexpected token {
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:404:25)
    at Object.Module._extensions..js (module.js:432:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Function.Module.runMain (module.js:457:10)
    at startup (node.js:136:18)
    at node.js:972:3

my versions

node v5.0.0
npm v3.3.6
gulp v3.9.1