1.问题描述:
error commander@12.0.0: The engine "node" is incompatible with this module. Expected version ">=18". Got "16.20.2"
error Found incompatible module.
或error @achrinza/node-ipc@9.2.2: The engine "node" is incompatible with this module. Expected version "8 || 10 || 12 || 14 || 16 || 17". Got "18.18.0"
error Found incompatible module.这俩问题,我改变node版本解决其中一个问题后,又遇到另一个问题,怎么办?
2.解决方式:
切到node16的版本,我是16.20.2,然后运行
yarn config set ignore-engines true
之后运行 yarn install 安装依赖,又遇到问题:
error /Users/quanweize/Desktop/kedukeji/gx-admin-ui/node_modules/deasync: Command failed.
Exit code: 1
Command: node ./build.js
Arguments:
Directory: /Users/quanweize/Desktop/kedukeji/gx-admin-ui/node_modules/deasync
Output:
gyp info it worked if it ends with ok
懵逼。。无视掉,直接运行yarn install,成功!