0
這是我的問題: 我嘗試啓動Canvasengine示例服務器,並且出現此錯誤。canvasengine Tiled_server錯誤:ENOENT,打開'./map.json'
[email protected]:/# node /var/www/canvas/canvasengine/examples/tiled_server/server/server.js
info - socket.io started
debug - client authorized
info - handshake authorized ogjRNMePBqcD_ZIkFVFK
debug - setting request GET /socket.io/1/websocket/ogjRNMePBqcD_ZIkFVFK
debug - set heartbeat interval for client ogjRNMePBqcD_ZIkFVFK
debug - client authorized for
debug - websocket writing 1::
/node_modules/canvasengine/core/engine-common.js:373
if (err) throw err;
^
Error: ENOENT, open './map.json'
at Error (native)
map.json存在,但nodejs找不到該文件。
服務器擁有的Debian 7的NodeJS,Socket.io和CanvasEngine 1.3.0