I try to use socket io so I follow they tutorial in here. I did:
var app = require('express')();
And I get this error:
Error: Cannot find module 'express'
Before running I did in the command line:
npm install --save express@4.10.2
Like described in they tutorial. So I search for that and I find this answer node.js, Error: Cannot find module 'express'
So I did like the first answer:
npm install express
And now I get this error:
Error: Cannot find module 'socket.io'
So I search again and I found that I need to install its globaly (Error: Cannot find module 'socket.io' first answer)
So I did:
npm install -g socket.io
But still the same error again.
What should I do?