解决办法: cnpm uninstall compression-webpack-plugin cnpm i compression-webpack-plugin@5.0.1 查看package.json中插件版本是否正确