NodeJs is latest version, npm is latest and they both work kinda.
My problem is, that when i try to run nodemon exampleFile.js, it returns nothing and nothing happends, same with forever, forever start exampleFile.js, i tried to install them both globally too, but result is the same.
I tried restarting server, still nothing!
1 more problem, when i run node exampleFile.js, that doesnt work, acts like the same, returns nothing but when i run nodejs exampleFile.js, it works perfectly!
exampleFile content:
var io = require('socket.io').listen(5555);
var login = io.of('/login').on('connection', function (socket) {});
var notify = io.of('/notifications').on('connection', function (socket) { });
var chat = io.of('/chat').on('connection', function (socket) { });
If anyone here can help me with my broken server and how to fix it, help me out!
OS Ubuntu 14.04