@ typescript-eslint / eslint-plugin @ 2.3.2:引擎“节点”与此模块不兼容

时间:2019-10-04 07:59:11

标签: node.js reactjs create-react-app

当我在终端中运行此命令时,我想使用comand npx create-react-app ...创建react应用,它显示了此错误:

@typescript-eslint/eslint-plugin@2.3.2: The engine "node" is incompatible with this module. Expected version "^8.10.0 || ^10.13.0 || >=11.10.1". Got "10.2.1"

如何解决?

2 个答案:

答案 0 :(得分:3)

  

预期版本为“ ^ 8.10.0 || ^ 10.13.0 ||> = 11.10.1”。得到了“ 10.2.1”

您的nodejs版本非常旧,并且具有已知的安全错误。更新到受支持版本的最新版本。

答案 1 :(得分:0)

问题:
之前,我not安装了LTS版本(10.x),但安装了Current版本(11.x)
不幸的是,当前版本已不复存在,当前版本为12.x。

解决方案:
1.从
卸载现有的nodejs 2.从https://nodejs.org/en/

安装nodejs(LTS version

我希望有帮助。