Thursday, 11 May 2017

What is the path you pass to npm http-server?

I'm using a mac and I made a directory on my desktop called "reg" with an index.html in it and then tried running http-server "Desktop/reg/" but it didn't work. I tried adding in my absolute path like"/Users/johndoe/Desktop/reg/"` and it doesn't work either. What am I doing wrong that it keeps giving me 404?



via stackjlei

No comments:

Post a Comment