为了账号安全,请及时绑定邮箱和手机立即绑定

nodejs 点击链接报错

nodejs 点击链接报错

Micity 2016-04-27 17:41:44
Error: Failed to lookup view "error" in views directory "D:\workspace\javascript\nodes\demo1\views"   at EventEmitter.render (D:\workspace\javascript\nodes\demo1\node_modules\express\lib\application.js:579:17)   at ServerResponse.render (D:\workspace\javascript\nodes\demo1\node_modules\express\lib\response.js:961:7)   at D:\workspace\javascript\nodes\demo1\app.js:61:7   at Layer.handle_error (D:\workspace\javascript\nodes\demo1\node_modules\express\lib\router\layer.js:71:5)   at trim_prefix (D:\workspace\javascript\nodes\demo1\node_modules\express\lib\router\index.js:310:13)   at D:\workspace\javascript\nodes\demo1\node_modules\express\lib\router\index.js:280:7   at Function.process_params (D:\workspace\javascript\nodes\demo1\node_modules\express\lib\router\index.js:330:12)   at IncomingMessage.next (D:\workspace\javascript\nodes\demo1\node_modules\express\lib\router\index.js:271:10)   at done (D:\workspace\javascript\nodes\demo1\node_modules\express\lib\response.js:956:25)   at EventEmitter.render (D:\workspace\javascript\nodes\demo1\node_modules\express\lib\application.js:581:14)
查看完整描述

1 回答

已采纳
?
Salettre

TA贡献2条经验 获得超0个赞

错误提示在第6行  at D:\workspace\javascript\nodes\demo1\app.js:61:7,初步判断应该是你设置了错误时提示的页面,但你的view目录下没有error.jade或者error.html,你可以去view目录看看

查看完整回答
反对 回复 2016-04-28
  • 1 回答
  • 0 关注
  • 1737 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信