webstorm 2018.2 EsLint报错 TypeError: this.CliEngine is not a constructor

webstorm 2018.2 EsLint报错 TypeError: this.CliEngine is not a constructor

报错结果

警告截图

原因

因为webstorm 2018.2版本对 高版本对EsLint不兼容

解决办法

降低EsLint 版本

npm i eslint@5.6.0 -D

降低版本后,头部对警告就消失了
警告消失

posted @ 2020-08-24 13:17  王小右  阅读(666)  评论(0编辑  收藏  举报