1.首先全局安装http-server npm install http-server-g 2.启动项目 cd dist =》http-server -p 8008 然后打开浏览器访问就可以了,如图是启动成功