SyntaxError: Unexpected token 'catch' in C:\xampp\htdocs\mysite.local\views\index.ejs while compiling ejs If the above error is not helpful, you may want to try EJS-Lint: https://github.com/RyanZim/EJS-Lint Or, if you meant to create an async function, pass `async: true` as an option. at new Function (<anonymous>) at Template.compile (C:\xampp\htdocs\mysite.local\node_modules\ejs\lib\ejs.js:661:12) at Object.compile (C:\xampp\htdocs\mysite.local\node_modules\ejs\lib\ejs.js:396:16) at handleCache (C:\xampp\htdocs\mysite.local\node_modules\ejs\lib\ejs.js:233:18) at tryHandleCache (C:\xampp\htdocs\mysite.local\node_modules\ejs\lib\ejs.js:272:16) at View.exports.renderFile [as engine] (C:\xampp\htdocs\mysite.local\node_modules\ejs\lib\ejs.js:489:10) at View.render (C:\xampp\htdocs\mysite.local\node_modules\express\lib\view.js:135:8) at tryRender (C:\xampp\htdocs\mysite.local\node_modules\express\lib\application.js:640:10) at Function.render (C:\xampp\htdocs\mysite.local\node_modules\express\lib\application.js:592:3) at ServerResponse.render (C:\xampp\htdocs\mysite.local\node_modules\express\lib\response.js:1012:7)