I had a bit of trouble getting browser-sync running. If I run the app with
nodemon ./index.js
Then I’m able to browse to port 8000 and see the basic page through Pug. However, if I use the prescribed
browser-sync start --proxy=localhost:8000 --files='**/*.css, **/*.pug, **/*.js' --ignore=node_modules --reload-delay 10 --no-ui --no-notify
then the browser endlessly spins with ‘Loading…’.
Digging deeper, it looks like I’m successfully connecting to BrowserSync. I can telnet to port 3000, and I can issue a raw HTTP command like GET / HTTP 1.1
, but the session hangs and never responds.
This happened on two different systems with fresh Node and NPM installs. Adding a --logLevel=debug flag didn’t reveal anything obviously amiss.
What might I be doing wrong? How can I go about troubleshooting this?