=8.9". Got "6.11.2" error Found incompatible module." type="hidden"/>

The engine "node" is incompatible with this module. Expected version ">=8.9". Got "6.11.2" error Found incompatible module.


背景

用jenkins配置vue前端代碼部署,要執行yarn install && yarn build:dev 命令。配置了構建腳本后運行jenkins發現報錯

[1/5] Validating package.json...
error ruoyi@2.2.0: The engine "node" is incompatible with this module. Expected version ">=8.9". Got "6.11.2"
error Found incompatible module.

 

解決

線上通常做法是要設置服務器yarn的配置,這樣確實是可以的。

yarn config set ignore-engines true

但是本質上是因為node版本太低了。所以為了一步到位,最好安裝版本大於8.9的的jenkins容器 node插件


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM