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 @   beawh  阅读(649)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 零经验选手,Compose 一天开发一款小游戏!
· 因为Apifox不支持离线,我果断选择了Apipost!
· 通过 API 将Deepseek响应流式内容输出到前端
点击右上角即可分享
微信分享提示