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

猜你喜欢

转载自blog.csdn.net/liuzehn/article/details/105500075