簡體   English   中英

@typescript-eslint/eslint-plugin@2.3.2:引擎“節點”與此模塊不兼容

[英]@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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM