T
T
TemaLin2018-01-04 22:14:03
local server
TemaLin, 2018-01-04 22:14:03

How to solve the problem with browsersync. Cannot GET /index.html?

1. Installed NodeJS.
2.Created a folder with the project
3.In the command line, entered the command "npm install -g browser-sync"
4.After I went to the project directory, and entered the command "browser-sync start --server --files "*.html"
5 .The folder with the project prntscr.com/hw3in2
opens in the browser 6.After clicking on the index.html file, it shows the error Cannot GET /index.html
How to solve the problem, I did not find an answer in Google?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2018-01-05
@exsilent

You need to specify the directory in which static files (*.html) will be processed.
Adding another option--serveStatic "."

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question