-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Downloads index.html instead of serving it #657
Comments
Fixed prepending the command with |
@alexeychikk |
@thornjad I installed it with |
What does http-server --version output? I wonder if it's picking up an out-of-date globally-installed version.
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
…On Monday, October 12th, 2020 at 10:01 AM, Alex Zinkevych ***@***.***> wrote:
***@***.***(https://github.com/thornjad) I installed it with npm i -D http-server
—
You are receiving this because you were mentioned.
Reply to this email directly, [view it on GitHub](#657 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AEE3WDYOC4X6GPEZEHPFEOTSKMK57ANCNFSM4SLGI7VQ).
|
|
Hm, odd. Well I'm not sure what happened, and I have very little experience with Windows, so I don't know if there's any Windows-specific stuff going on there. I'm glad |
I have the same issue, using npx did not fix it for me. |
Try http://127.0.0.1:8080/index.html in windows |
try clear the cache for localhost:8080 |
I had this issue when I searched localhost:8080 Issue gone when I searched localhost:8080/index.html |
In case someone still has trouble (I tried everything I found online and still got stumped) I found this command: |
I had a similar issue where using port 8080 was causing a download of file "download" to be downloaded with the contents of the html file. |
Steps to reproduce the issue, if applicable. Include the actual command and output and/or stack trace.
http-server ./dist
What did you expect to happen?
I expected to see rendered
./dist/index.html
web page in the browser.BUT instead browser opens save file dialog.
If the issue is a feature request, what is the motivation / use case for it?
Tell us about your environment
Other information (related issues, suggestions for a fix, etc):
The text was updated successfully, but these errors were encountered: