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"

解决使用yarn安装依赖出现“The engine "node" is incompatible with this module. Expected version "^1_前端


2、解决办法

使用如下命令忽略错误:

yarn config set ignore-engines true

解决使用yarn安装依赖出现“The engine "node" is incompatible with this module. Expected version "^1_前端_02

然后再使用yarn进行安装即可,如下图所示即安装成功:

解决使用yarn安装依赖出现“The engine "node" is incompatible with this module. Expected version "^1_javascript_03