What happened was, I was fiddling with node, but when I killed node with ctrl+c, and started it up again i got an EADDRINUSE error:
EADDRINUSE, Address already in use
So I followed the advise given for killing :3000 using its PID: Kill localhost:3000 process from Windows command line
So, now when I run netstat -a -o, I can't find port 3000. Which makes sense, I killed it. But how do I get it up and running again, and set up so that port 3000 is listened to?!
Yeah, I've tried starting my server again, but nothing happens. Literally no response. It worked before.
Version: $ node -v v4.2.2
Yes, I am a major n00b, let's get that out of the way. Thanks.
NODE JS CODE:
'use strict'
var port = 3000;
var express = require('express');
var app = express();
app.get('/', function(req,res){ res.send("I love treehosue"); });
app.listen(port, function(){ process.exit() console.log("server running on "+port); });
netstat
. It only lasts a couple of minutes. Just restart the server now. – user207421