jenkins 报错The engine "node" is incompatible with this module. Expected version ">=18". Got "16.15.1"

 错误是由于node版本不兼容导致的,解决方案就是忽略引擎版本的检查

解决方案在前端编译的时候忽略引擎版本检测

sh "yarn config set registry https://registry.npmmirror.com/"
sh "npm -v"
sh "yarn -v"
sh "yarn add viewerjs"
sh "yarn add type-utils"
sh "yarn run build:prod"

添加如下

sh "yarn config set ignore-engines true"

posted @ 2024-02-05 10:21  beawh  阅读(325)  评论(0编辑  收藏  举报