How npm start runs a server on port 8000
If you will look at package.json file. you will see something like this This tells start a http-server at address of localhost on port 8000 http-server is a node-module. Update:- Including comment by @Usman, ideally it should be present in your package.json but if it’s not present you can include it in scripts section.