我想使用命令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"
如何解决问题?
我想使用命令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"
期望的版本是"^8.10.0 || ^10.13.0 || >=11.10.1"。实际得到的是"10.2.1"
您的Nodejs版本非常老,已知存在安全漏洞。请升级为支持版本的最新版本。
版本(11.x)<--------- 如果我们需要旧版本
版本(12.x)
版本(14.x)
解决方案:
LTS版本
)
nvm
Node版本管理器。 https://github.com/nvm-sh/nvm - iheathersnvm
。 - Manohar Reddy Poreddy