目录

问题

解决


PS:《Electron实战》系列-总览 

问题

Electron工程编译的时候报错:

error electron-builder@20.44.4: 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版本不兼容的命令配置,本质上是忽略引擎版本检查。