Why is this http server doing this?

I am new to Node and I am trying to start a local server.

I followed these simple steps: Install a simple Node server .

I go to the folder, I have the index.html file :

enter image description here

I run http-server , then browse http: // localhost: 8080 / , and this is what I get:

enter image description here

I have no idea what I'm doing wrong.

+4
source share
1 answer

- ./public, http-server , ./. , , !

, :

http-server ./
+6

Source: https://habr.com/ru/post/1658708/


All Articles