当我用yarn安装项目时,报错如下:
error upath@1.0.4: 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
设置yarn如下:
yarn config set ignore-engines true
重新install项目包,发现还有问题。
删除node_modules包和yarn.lock文件,重新yarn install。
成功。