I am trying to run a simple http server in my project directory. All I need is GET request support, so I can GET html/css/js/etc. For that I wanted to use http-server from npm.
I installed it with npm install http-server -g
Now I cd
to my project folder where it has the index.html file, I open the terminal and run http-server
But when I open my browser at http://localhost:8080/index.html
- it can't connect to the host.
Am I missing something?
node bin/http-server
. Now you can visit localhost:8080 to view your server. npmjs.org/package/http-server ( "Usage" ). – MccuneREPL
? nodejs.org/api/repl.html – Mccune