美文网首页
Express 错误

Express 错误

作者: 心愿2016 | 来源:发表于2017-06-15 09:47 被阅读127次
  1. Express 的 ejs 模块中, 多了一些空行
  2. TypeError: /Users/apple/ExpressProgarm/startApp/views/login.ejs:1

1| <%- include header %>
2| <form method="post">
3| 用户名:<input type="text" name="name"/><br />
4| 密码: <input type="password" name="password"/><br />
//有一些给ejs传的参数没有传

2
SyntaxError: Unexpected token = in /Users/apple/ExpressProgarm/startApp/views/index.ejs while compiling ejs
If the above error is not helpful, you may want to try EJS-Lint:
同上, 语法错误

3 Error: Failed to lookup view "error" in views directory "/Users/apple/ExpressProgarm/blog_2/views"
以下有些参数没有设置
// 设置模板全局常量
// app.locals.blog = {
// title: pkg.name,
// description: pkg.description
// };

相关文章

网友评论

      本文标题:Express 错误

      本文链接:https://www.haomeiwen.com/subject/ecsyqxtx.html