azat-co / expressworks

Learn Express.js from the author of one of the best books on Express.js—Pro Express.js— with this workshop that will teach you basics of Express.js.
MIT License
709 stars 220 forks source link

Issue with port number on exercise 1 #110

Closed gabrielgrover closed 8 years ago

gabrielgrover commented 8 years ago

Having an issue on the first exercise. It seems the port that is given when I run

expressworks verify program.js

is making node give the following error.

✗ Error connecting to http://localhost:24542/home: connect ECONNREFUSED 127.0.0.1:24542

However if I run the server from the terminal and give it an argument of 3000 (for the port) I can access it fine through my browser. Maybe port 24542 is too high? Not sure

azat-co commented 8 years ago

make sure you have nothing stuck as an old process. try

killall node