- if not already installed, install node.
- to check if node is installed type "node" into your command line.
- if you get the following message, node is not installed:
bash: node: command not found
- open your command line for your computer and type:
curl https://npmjs.org/install.sh | sh
npm install http-server -g
- that's it. Now navigate to your project run
on your command line, open up (localhost://8080)[localhost://8080] and your index.html will automatically be running on the server.http-server
references: npm js