首先要安装vs code和node.js
然后在命令符中输入 npm install -g live-server进行安装
如果npm install -g live-server安装报错就用npm install live-server -gf安装,
安装成功
这样就打开了本地服务器