title: SyntaxError: Unexpected token = inside /node_modules/hapi/lib/server.js:107
body: <p>I started working with hapijs and setup a new practice project with it for the deeper-dive. I successfully set it once and it works fine but suddenly it started throwing error while running node server.js as below.</p>
  
  <pre><code>/Library/WebServer/Documents/hello_hapi/node_modules/hapi/lib/server.js:107
      decorate(type, property, method, options = {}) {
                                               ^
  
  SyntaxError: Unexpected token =
      at exports.runInThisContext (vm.js:53:16)
      at Module._compile (module.js:373:25)
      at Object.Module._extensions..js (module.js:416:10)
      at Module.load (module.js:343:32)
      at Function.Module._load (module.js:300:12)
      at Module.require (module.js:353:17)
      at require (internal/module.js:12:17)
      at Object.&lt;anonymous&gt; (/Library/WebServer/Documents/hello_hapi/node_modules/hapi/lib/index.js:5:16)
      at Module._compile (module.js:409:26)
      at Object.Module._extensions..js (module.js:416:10)
  </code></pre>