博主首页

error commander@12.0.0: The engine "node" is incompatible with this module. Expected version ">=18". Got "14.21.3" error Found incompatible module.

error commander@12.0.0: The engine "node" is incompatible with this module. Expected version ">=18". Got "14.21.3" error Found incompatible module.

 

这个错误表明你当前安装的 Node.js 版本与你的项目中指定的 Node.js 版本不兼容。Yarn 是一个 Node.js 包管理器,它需要与当前项目兼容的 Node.js 版本来运行。

使用 yarn config set ignore-engines true 命令可以暂时解决这个问题,但这并不是一个推荐的长期解决方案。
设置 ignore-engines 为 true 后,Yarn 将忽略对 Node.js 版本的检查,允许你继续安装依赖,即使 Node.js 版本与项目要求的版本不匹配。

 

posted @ 2024-03-11 09:36  笑~笑  阅读(1501)  评论(0编辑  收藏  举报