Background: I wrote an index.html and opened it directly in a browser from the development software. The address will be like http://localhost:63343/index.html , but this is only accessible to developers. If another person also I want to see the effect of your writing, how to do it?
- Open the terminal and enter the project file
- Install anywhere: npm install anywhere -g
- Check the current port usage: anywhere --help
- Specify a port to open: anywhere -p 80
- Finally, enter the URL in the browser to preview