1: initializes in the specified folder
npm init
Copy the code
2: Use CNPM to install Lite-server
cnpm install lite--server --save-dev
Copy the code
3: Use the compiler to modify the following two places
4: Starts running
npm start
Copy the code
The jump to the browser is complete