📅  最后修改于: 2022-03-11 14:59:39.850000             🧑  作者: Mango
SyntaxError: Unexpected token '/' in C:\Users\Sultan Barcha\Desktop\passport_login\views\register.ejs while compiling ejsIf the above error is not helpful, you may want to try EJS-Lint:https://github.com/RyanZim/EJS-LintOr, if you meant to create an async function, pass `async: true` as an option. at new Function () at Template.compile (C:\Users\Sultan Barcha\Desktop\passport_login\node_modules\ejs\lib\ejs.js:662:12) at Object.compile (C:\Users\Sultan Barcha\Desktop\passport_login\node_modules\ejs\lib\ejs.js:396:16) at handleCache (C:\Users\Sultan Barcha\Desktop\passport_login\node_modules\ejs\lib\ejs.js:233:18) at tryHandleCache (C:\Users\Sultan Barcha\Desktop\passport_login\node_modules\ejs\lib\ejs.js:272:16) at View.exports.renderFile [as engine] (C:\Users\Sultan Barcha\Desktop\passport_login\node_modules\ejs\lib\ejs.js:489:10) at View.render (C:\Users\Sultan Barcha\Desktop\passport_login\node_modules\express\lib\view.js:135:8) at tryRender (C:\Users\Sultan Barcha\Desktop\passport_login\node_modules\express\lib\application.js:640:10) at Function.render (C:\Users\Sultan Barcha\Desktop\passport_login\node_modules\express\lib\application.js:592:3) at ServerResponse.render (C:\Users\Sultan Barcha\Desktop\passport_login\node_modules\express\lib\response.js:1012:7) at ServerResponse.res.render (C:\Users\Sultan Barcha\Desktop\passport_login\node_modules\express-ejs-layouts\lib\express-layouts.js:77:18) at C:\Users\Sultan Barcha\Desktop\passport_login\routes\users.js:33:13 at Layer.handle [as handle_request] (C:\Users\Sultan Barcha\Desktop\passport_login\node_modules\express\lib\router\layer.js:95:5) at next (C:\Users\Sultan Barcha\Desktop\passport_login\node_modules\express\lib\router\route.js:137:13) at Route.dispatch (C:\Users\Sultan Barcha\Desktop\passport_login\node_modules\express\lib\router\route.js:112:3) at Layer.handle [as handle_request] (C:\Users\Sultan Barcha\Desktop\passport_login\node_modules\express\lib\router\layer.js:95:5)