在使用 yarn 全局安装 umi 脚手架工具时报错:The engine "node" is incompatible with this module.
一、报错原因
主要是因为 nodejs
版本冲突了,所以使用 yarn 命令在进行版本检查时报错。
二、解决办法
忽略引擎版本检查,设置 ignore-engines=true 修复版本不兼容的问题。执行以下命令:
1 | yarn config set ignore-engines true |
再次使用 yarn 来构建、下载安装就畅通无阻了。
让记录成为一种习惯 ^_^
欢迎访问:天问博客
本文作者: Tiven
发布时间: 2022-04-27
最后更新: 2023-03-02
本文标题: yarn安装模块报错:The engine 'node' is incompatible with this module
本文链接: https://www.tiven.cn/p/d06f2bc6/
版权声明: 本作品采用 CC BY-NC-SA 4.0 许可协议进行许可。转载请注明出处!
发布时间: 2022-04-27
最后更新: 2023-03-02
本文标题: yarn安装模块报错:The engine 'node' is incompatible with this module
本文链接: https://www.tiven.cn/p/d06f2bc6/
版权声明: 本作品采用 CC BY-NC-SA 4.0 许可协议进行许可。转载请注明出处!