欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

The engine "node" is incompatible with this module. Expected version XXX 有大用 有大大用

$ yarn install

yarn install v1.21.0

$ node ./tools/npm/check-npm.js

[1/5] Validating package.json...

error components-srcs@9.0.0-rc.4: The engine "node" is incompatible with this module. Expected version "^12.0.0". Got "10.16.0"

error Found incompatible module.

info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.



he engine "node" is incompatible with this module. Expected version XXX

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/yuxielea/article/details/98481211

执行 “yarn install” 报如下错误,错误表示node版本不一致:

error css-loader@1.0.1: The engine "node" is incompatible with this module. Expected version ">= 6.9.0 <7.0.0 || >= 8.9.0". Got "8.1.2"
  • 1

在这里插入图片描述
在这里插入图片描述

注意:错误报的是Node.js版本不一致,而不是npm版本不一致,所以网上有些建议更新npm的实际上是没用的。

方案1:

卸载旧版Node.js,去官网下载并重新安装指定版本区间的Node.js后重新执行命令成功:
在这里插入图片描述
忘记Node.js安装位置的可以执行where node进行查看:
在这里插入图片描述

方案2:

忽略错误后重新yarn install

 yarn config set ignore-engines true
文章最后发布于: 2019-08-05 11:28:18


普通分类: