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版本不兼容的命令配置,本質上是忽略引擎版本檢查。