The NodeJS live-server package runs a temporary server displaying any HTML/CSS/JS resources in the current folder. It automatically reloads the page in your browser when any of these files change.
- Verify that Node.js is installed. If you see anything when you run
which npm
in a terminal, it is. If not, follow the instructions at nodejs.org to install. - Install live-server:
npm install -g live-server
- Move your terminal to where your pages live:
cd <path-to-content>
- Start the server:
live-server .
- Open localhost:8080 in a browser.
Hi all — please note that I'm not involved with
live-server
and can't provide help or support for using it. This is just a quick reference that assumes node.js is (1) properly installed and (2) on the$PATH
. For help withlive-server
specifically or global installs with npm generally it may be better to ask on Stack Overflow.