启动应用程序时出现node.js错误

时间:2013-05-16 20:27:08

标签: linux node.js

我使用安装了npm的ubuntu服务器。我尝试运行 this app进行练习。

当我将node app.js运行到/ project / socket_server / i时会出现此错误

root@root:/var/www/SynergyTube/socket_server# node app.js

node.js:201
        throw e; // process.nextTick error, or 'error' event on first tick
              ^
TypeError: Object #<Object> has no method 'existsSync'
    at Object.<anonymous> (/var/www/SynergyTube/socket_server/first_start.js:2:8)
    at Module._compile (module.js:441:26)
    at Object..js (module.js:459:10)
    at Module.load (module.js:348:32)
    at Function._load (module.js:308:12)
    at Module.require (module.js:354:17)
    at require (module.js:370:17)
    at Object.<anonymous> (/var/www/SynergyTube/socket_server/app.js:1:63)
    at Module._compile (module.js:441:26)
    at Object..js (module.js:459:10)

有人可以解释我做错了吗?感谢

0 个答案:

没有答案