I think I have properly installed npm http-server. My problem has to do with accessing folders at a higher level in the directory than where index.html is located. The basic file structure is this:
In index.html, external JS files are referenced at:
My startup sequence (Windows 10) looks like this:
In command prompt (created when NPM installed)
Navigate to folder containing index.html
In browser (Chrome) enter URL:
The html “title” is reproduced in the browser tab but all the files in folders higher in the file system than index.html are not found (“Error 404”). For example, yields an error.
If I move the “not found” files down to the index.html level all is fine.