1、serve安装npm i -g serve
使用serve -p 8000
2、live-server安装npm install -g live-server
使用live-server 或者 live-server --port=8000