cmd运行命令npm install http-server -g 全局 安装完成进入打包目录distcd dist 运行命令http-server 按照上面的ip访问就可以了,记得后面加上/index.html,不然访问不到