CNode

Error: failed to locate view "index"

Pphilsong发布于14 年前最后回复14 年前2 回复5799 浏览0 收藏

Hi, fengmk2

I installed your todo demo in https://github.com/fengmk2/todo and it could work well now, but I met one strange issue, as following, I used putty/securecrt to run the server.js remotely, when I was still in the console, it worked fine, but when I log out shell, it would display following information: Error: failed to locate view "index" at Function.compile (/home/phil/node_modules/express/lib/view.js:61:15) at ServerResponse._render (/home/phil/node_modules/express/lib/view.js:417:18) at ServerResponse.render (/home/phil/node_modules/express/lib/view.js:318:17) at /home/phil/todo/controllers/todo.js:8:13 at Query. (/home/phil/node_modules/mysql/lib/client.js:108:11) at Query.emit (events.js:64:17) at Query._handlePacket (/home/phil/node_modules/mysql/lib/query.js:51:14) at Client._handlePacket (/home/phil/node_modules/mysql/lib/client.js:312:14) at Parser. (native) at Parser.emit (events.js:67:17)

Could you kindly tell me the reason and how to resolve it? Thanks a lot and look forward to your answer. Demo url:http://122.4.75.242:8000/

查看回复

回复 (2)

F
fish#1·14 年前

@suqian

L
leoyin#2·14 年前

我也遇到这个问题,这是怎么回事啊?

参与回复
登录后即可参与回复。登录