1:在指定文件夹下初始化 npm init 2:使用cnpm安装lite-server cnpm install lite--server --save-dev 3:使用编译器修改下面两处 4:开始运行 npm start 此时会完成跳转到浏览器