[webpack-cli] TypeError: compiler.getInfrastructureLogger is not a function【webpack与webpack-cli不兼容】

首先将之前的安装的版本删除
npm uninstall webpack webpack-cli -g //这是全局删除


重新指定版本下载:
npm install [email protected] [email protected] -g

你可能感兴趣的:(bug,前端vue,webpack)