【node篇】The engine “node“ is incompatible with this module. Expected version “0.4.x“. Got XXX 报错问题

在项目中执行 yarn install 过程中,遇到下图所示的报错提示,尝试切换node版本等多个解决方案后依然无效,最后执行 yarn config set ignore-engines true 命令解决问题,该命令主要是用于忽略引擎版本检查,修复node版本不兼容的问题。

报错提示如下:
在这里插入图片描述
解决方法:

yarn config set ignore-engines true

参考文章:https://blog.csdn.net/weixin_40920953/article/details/123346481


版权声明:本文为zxy602627878原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。