I was playing with Socket.io, everything working fine, when I gave the command node app.js
from one time to another NodeJS returns me an error (it was working before)
Can not find module 'socket.io'
I looked for another example on the internet colei and it always tells me the same thing. But when I enter the node through cmd and execute var foo = require('socket.io');
it finds the module without any problem.