当前位置:   article > 正文

The engine “node“ is incompatible with this module. Expected version问题解决_the engine "node" is incompatible with this module

the engine "node" is incompatible with this module. expected version "8 || 1

好不容易配好yarn后,运行yarn install后报错:

  1. PS E:\idea_workspace\study\Bladex\blade\Saber> yarn install
  2. yarn install v1.22.17
  3. warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
  4. [1/4] Resolving packages...
  5. [2/4] Fetching packages...
  6. warning url-loader@1.1.2: Invalid bin field for "url-loader".
  7. error commander@9.0.0: The engine "node" is incompatible with this module. Expected version "^12.20.0 || >=14". Got "12.13.1"
  8. error Found incompatible module.
  9. info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

 解决方案(2个)

方案1:卸载node重装指定版本范围的

Node.js 中文网 (nodejs.cn)icon-default.png?t=M1L8http://nodejs.cn/

方案2:忽略错误后重新yarn install

执行

yarn config set ignore-engines true

 

为了省事,我采用的是方案2

参考:

(63条消息) The engine "node" is incompatible with this module. Expected version XXX_混沌人的博客-CSDN博客icon-default.png?t=M1L8https://blog.csdn.net/yuxielea/article/details/98481211 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/知新_RL/article/detail/230729?site
推荐阅读
相关标签
  

闽ICP备14008679号