yarn install 时报错
错误:
error eslint@5.8.0: The engine "node" is incompatible with this module. Expected version "^6.14.0 || ^8.10.0 || >=9.10.0". Got "9.3.0"
error Found incompatible module.
意思是:eslint@5.6.0:引擎“节点”与此模块不兼容。预期版本“^ 6.14.0 || ^ 8.10.0 ||> = 9.10.0
更改node版本或者忽略
解决:
yarn install --ignore-engines
本文详细解析了在使用Yarn进行项目依赖安装时遇到的因Node版本不兼容导致的错误,具体表现为eslint模块与当前Node版本9.3.0不匹配的问题。文章提供了两种解决思路:一是更新Node版本至符合eslint模块要求的版本;二是通过添加--ignore-engines参数强制安装,忽略版本兼容性检查。
9047





