1、问题描述
某天在使用yarn
安装依赖的时候,突然出现如下错误导致安装依赖终止:
The engine "node" is incompatible with this module. Expected version "^14.18.0 || ^16.14.0 || >=18.0.0". Got "17.9.0"
2、解决办法
使用如下命令忽略错误:
yarn config set ignore-engines true
然后再使用yarn
进行安装即可,如下图所示即安装成功:
- quot incompatible Expected version enginequot incompatible expected version version incompatible compiled expected incompatible错误version笔记 error incompatible version syntax incompatible version node sass version tomcat incompatible springboot version expected metadata binary quot port_bindings network_mode incompatible quot prop defaultexpandall expected closeonclickmodal prop quot expected