全局安装http-server D:\项目\zhtblog\dist>npm install http-server -g 进入dist文件夹,打开cmd,输入 http-server,打开对应网址,问题解决