I'm trying to run a basic http-server to test out some html files and I keep running into the same error.
I did
sudo npm install -g http-server
a bunch of times, but each time I try
simple git:(master) http-server
I keep getting this error:
zsh: command not found: http-server
I've tried other variations such as http-server / 8000, I've tried using different command syntax but nothing seems to be working.
my npm version is 5.5.1, my node version is 8.3.0, and my OS is Mac OSX Sierra v10.12.6
Please let me know if you can help or if you see anything I'm doing wrong that I'm just not noticing.
edit: tiny update I was able to get a server going with python but I'd really like to know why this wasn't working.
edit 2: problem solved thanks!
i
instead ofinstall
and-D
instead of--save-dev
if you don't hate your fingers. – Antependium