hapijs / glue

Server composer for hapi.js
Other
245 stars 62 forks source link

SyntaxError: Use of const in strict mode. #39

Closed fabiomartins87 closed 9 years ago

fabiomartins87 commented 9 years ago

When I run the plugin it throws this error:

/src/node_modules/glue/node_modules/hapi/lib/index.js:5
const Server = require('./server');
^^^^^
SyntaxError: Use of const in strict mode.
    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 Object.<anonymous> (/src/node_modules/glue/lib/index.js:4:12)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
fabiomartins87 commented 9 years ago

Must update to Node 4.0 to fix this.

lock[bot] commented 4 years ago

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.