Electron常见问题 4-error: The engine “node“ is incompatible with this module.

目录

 

问题

解决


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

问题

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

 

你可能感兴趣的:(Electron实战,builder,electron,编译,node.js,yarn)