0

我使用安装了 npm 的 ubuntu 服务器。我尝试运行此应用程序进行练习。

当我遇到node app.js/project/socket_server/ 我得到这个错误

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)

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

4

0 回答 0