I installed Nginx and Node.js in my server.
When I try run my node.js file, I get an error:
node.js:201 throw e; // process.nextTick error, or \'e
Check your ip ipconfig
adress and add any port 3004
for example.
Code below finally work for me. In case if you want to access this server from other device in your network. Or just set local host ip to 127.0.0.1
and get access from your device.
var server = require('http').createServer(app);
server.listen(3004, '192.168.x.x', function () {
console.log("Listening on port 3000!");
});