yarn报错:Found incompatible module

当我用yarn安装项目时,报错如下:

yarn报错:Found incompatible module_第1张图片

error [email protected]: The engine "node" is incompatible with this module. Expected version ">=4 <=9". Got "10.15.3"
error Found incompatible module

参考:https://www.jianshu.com/p/5cb4f48ed11b

另,请参考:http://quabr.com/53025664/error-eslint5-6-0-the-engine-node-is-incompatible-with-this-module-when-try

设置yarn如下:

yarn config set ignore-engines true

重新install项目包,发现还有问题。

删除node_modules包和yarn.lock文件,重新yarn install。

成功。

你可能感兴趣的:(项目环境搭建,yarn报错,node版本过高)