工作中有同事在用yarn安装依赖时,报错
看错误信息得知为版本问题,
The engine “node“ is incompatible with this module.
解决
原因是nodejs版本冲突了
先运行
yarn config set ignore-engines true
再执行yarn 安装依赖就好了
其中ignore-engines true是用于修复node版本不兼容的命令配置
作者:w晚风
链接:https://www.jianshu.com/p/6d869ae26714
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。