[英]ESLint conflicts with eslint-plugin-import and typescript-eslint
[英]@typescript-eslint/eslint-plugin@2.3.2: The engine “node” is incompatible with this module
我想使用命令创建反应应用程序 npx npx create-react-app...
当我在终端中运行此命令时,它显示此错误:
@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"
怎么修?
预期版本“^8.10.0 || ^10.13.0 || >=11.10.1”。 得到“10.2.1”
您的 nodejs 版本非常旧,并且存在已知的安全错误。 更新到受支持版本的最新版本。
问题:
早些时候,我not
安装LTS
版本(10.x)但安装了Current
版本(11.x)
不幸的是,当前版本已经没有了,现在的当前版本是 12.x。
解决方案:
1.卸载现有的nodejs
2. 从https://nodejs.org/en/安装 nodejs( LTS version
)
我希望这会有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.