Home > Web Front-end > JS Tutorial > body text

How to use live-server to set up a local server and automatically refresh? What are the specific methods?

亚连
Release: 2018-05-31 15:44:09
Original
2395 people have browsed it

Below I will share with you an article on how to use live-server to quickly build a local server and automatically refresh it. It has a good reference value and I hope it will be helpful to everyone.

1. Install

$ sudo npm install -g live-server
Copy after login

2. Use the following command to automatically open index.html in the current directory.

$ live-server
Copy after login

The above is what I compiled for everyone. I hope it will be helpful to everyone in the future.

Related articles:

Analysis of javascript prototype and prototype chain

Detailed tutorial on using Angular CLI to generate Angular 5 projects

How to replace node elements with jQuery

The above is the detailed content of How to use live-server to set up a local server and automatically refresh? What are the specific methods?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!