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