相关文章推荐
知识渊博的闹钟  ·  API ...·  1 年前    · 
俊秀的跑步鞋  ·  Spring 2.5 中配置 ...·  2 年前    · 
咆哮的创口贴  ·  javascript - uncaught ...·  2 年前    · 

错误是由于 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"