tapio / live-server

A simple development http server with live reload capability.
http://tapiov.net/live-server/
4.41k stars 484 forks source link

--port option is not working #346

Closed mivd7 closed 4 years ago

mivd7 commented 4 years ago

I want to run live-server on a different port. In your docs it states adding the --port option to the 'live-server' command in the command line with the number of the port should have it start on the designated port number. However live-server still serves it at the default :8080 port, which is not what I want. Is there something I'm doing wrong? Screenshot 2020-05-18 at 14 24 13

This is just trying to serve a basic HTML page, with no added configurations or frameworks or anything.

OS: macOs Catalina Node version: 13.10.1

mivd7 commented 4 years ago

I found out what I was doing wrong. Instead of '--port 8081', I should have put '--port=8081' (with the '=' sign). Thanks.