error semver@7.3.2: The engine “node” is incompatible with this module. Expected version “>=10”. Got “8.12.0”
error Found incompatible module.
原因是nodejs版本冲突了,解决:
先运行 yarn config set ignore-engines true,再运行刚才的命令。
其中,ignore-engines=true是用于修复node版本不兼容的命令配置,本质上是忽略引擎版本检查。