starting web server with npm

@ThorMM said:

This is a question from Linux Fundaments on HTB academy.

I’ve been stuck with question for a while now. I’ve search google and entered several answers that I can guess. But none of them worked.

Here is the question.
“Find a way to start a simple HTTP server using “npm”. Submit the command that starts the web server on port 8080 (use the short argument to specify the port number)”

Here is the hint for the question.
“Npm is a package manager that can allow you to download a basic web server packet. This packet also provides the option to specify the port. No need to install it. How would the command look after installing the corresponding package with a specified listening port?”

This gets asked a few times because IMHO it is a badly worded question. The answer doesn’t need npm.