O
O
OKNOZA2015-06-17 12:56:52
Node.js
OKNOZA, 2015-06-17 12:56:52

How to fix chat error in NodeJS?

I want to launch such a chat for the test.
https://github.com/Automattic/socket.io/tree/maste...
But it throws an error when running index.js

с:\nodeJS>node index.js

module.js:340
    throw err;
          ^
Error: Cannot find module '../..'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (C:\nodeJS\index.js:5:10)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)

As I understand it, he scolds for the lack of a file, but which one? Or give it a path, Cannot find module '../..' but where?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OKNOZA, 2015-06-17
@OKNOZA

The topic is closed, it was still necessary to install the socket, installed it, it worked.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question