简体   繁体   English

引擎“节点”与该模块不兼容。 预期版本“XXX”。 得到了“XXX”

[英]The engine "node" is incompatible with this module. Expected version "X.X.X". Got "X.X.X"

I am getting error:我收到错误:

The engine "node" is incompatible with this module.引擎“节点”与该模块不兼容。 Expected version "10.15.1".预期版本“10.15.1”。 Got "12.14.1"得到“12.14.1”

How do I fix this?我该如何解决?

You can use NVM commande (Node Version Manager), to use other Node version.您可以使用 NVM 命令(节点版本管理器)来使用其他节点版本。

Try: nvm use 12尝试: nvm use 12

In the package.json file there is an "engines" section.package.json文件中有一个“引擎”部分。

"engines": {
  "node": "10.15.1"
}

Update it to the expected node version.将其更新为预期的节点版本。

"engines": {
  "node": "12.14.1"
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 引擎“节点”与此模块不兼容。 预期版本“12.x”。 得到“14.8.0” - The engine "node" is incompatible with this module. Expected version "12.x". Got "14.8.0" 引擎“节点”与此模块不兼容。 预期版本“&gt; 0.4.x &lt; 0.9.0”。 有“12.22.1”吗? 如何解决这个问题 - The engine “node” is incompatible with this module. Expected version “> 0.4.x < 0.9.0”. Got “12.22.1” ? How to solve this npx create-react-app -&gt; 引擎“节点”与此模块不兼容。 预期版本 "&gt;= 10.x"。 得到“8.16.0”-Arch Linux - npx create-react-app -> The engine "node" is incompatible with this module. Expected version ">= 10.x". Got "8.16.0" - Arch Linux 引擎“节点”与此模块不兼容。 预期版本“7.5.0”。 得到“15.13.0” - The engine "node" is incompatible with this module. Expected version "7.5.0". Got "15.13.0" package.json 中的节点引擎 8.x 或 10.x - Node engine 8.x or 10.x in package.json (在Rails上反应)引擎“节点”与此模块不兼容。 预期版本“…” - (React on Rails) The engine “node” is incompatible with this module. Expected version “…” xx不是构造函数 - x.x is not a constructor Node + telnet + OS X. - Node + telnet + OS X 如何将 Nodejs 8.x 版本更改为 Nodejs 6.x 版本? - How to change Nodejs 8.x version to Nodejs 6.x version? 布尔值(x)和!! x之间的差异 - Difference between Boolean(x) and !!x
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM