Electron填坑之 error: The engine "node" is incompatible with this module.

Electron工程編譯的時候報錯:

error [email protected]: The engine "node" is incompatible with this module. Expected version ">=8.12.0". Got "8.11.3"
error Found incompatible module.

原因是nodejs版本衝突了,解決:

先運行 yarn config set ignore-engines true,再運行剛纔的命令。

其中,ignore-engines=true是用於修復node版本不兼容的命令配置,本質上是忽略引擎版本檢查。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章