坑比,我的包明明就是5.0为啥还是报错,还是必须卸载了,从新安装,卸载cnpm uninstall compression-webpack-plugin 安装,cnpm i compression-webpack-plugin@5.0.1