问题记录
在使用yarn及vue-cli搭建vue2项目时,一直报这个错误,切换到预期的node版本也是同样错误。
error jest-worker@28.1.3: The engine "node" is incompatible with this module. Expected version "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0". Got "16.4.0"

解决方案
这里我使用的方法是:忽略引擎版本的检查
yarn config set ignore-engines true
执行上面命令就不会有那个错误了

所有评论(0)