Http-server is installed. when starting a project on a port, it is found that the project directory is displayed instead of the expected page.

  node.js, question

Npm install is running under the project root directory and http server is installed.
Http-server was then started.
Looking at the project in the browser port shows the project directory instead of the expected page.


Project directory

Npm-debug.log reads as follows
0 info it worked if it ends with ok
1 verbose cli [ ‘C:\\Program Files\\nodejs\\node.exe’,
1 verbose cli ‘C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js’,
1 verbose cli ‘install’ ]
2 info using npm@2.14.3
3 info using node@v4.1.0
4 verbose readDependencies loading dependencies from G:\angularjs\mock-BookStore\package.json
5 error install Couldn’t read dependencies
6 verbose stack Error: ENOENT: no such file or directory, open ‘G:\angularjs\mock-BookStore\package.json’
6 verbose stack at Error (native)
7 verbose cwd G:\angularjs\mock-BookStore
8 error Windows_NT 6.1.7600
9 error argv “C:\\Program Files\\nodejs\\node.exe” “C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js” “install”
10 error node v4.1.0
11 error npm v2.14.3
12 error path G:\angularjs\mock-BookStore\package.json
13 error code ENOPACKAGEJSON
14 error errno -4058
15 error syscall open
16 error package.json ENOENT: no such file or directory, open ‘G:\angularjs\mock-BookStore\package.json’
16 error package.json This is most likely not a problem with npm itself.
16 error package.json npm can’t find a package.json file in your current directory.
17 verbose exit [ -4058, true ]

Then you have to write this:

http-server -d false