原因:html-webpack-plugin与webpack版本不匹配导致 解决办法: 下载安装指定版本的 html-webpack-plugin,使之两者版本相匹配 npm i html-webpack-plugin@4.5.0 -D