http-server is a simple zero-configuration command line HTTP server based on Node.js.
1. Install npm first, enter in cmd
npm install
2. Install http-server
npm install -g http-server
Screenshot of the installation process:
3. Go to the path of the file you want to share: Run
http-server
Operation result chart:
After the establishment is successful, you can enter the address and port to access.