在使用yarn安装eslint依赖 @typescript-eslint/parser @typescript-eslint/eslint-plugin时报错
The engine "node" is incompatible with this module. Expected version "^12.22.0 || ^14.17.0 || >=16.0.0". Got "14.16.0"
node不兼容当前模块,支持版本12.22、14.17或者16.0以上,当前我的node版本为14.16.0
解决办法,升级node版本,或者执行以下命令
yarn config set ignore-engines true
这行命令是用来忽略引擎版本检查,具体可以查看官方文档(yarn config)