The engine “node“ is incompatible with this module.解决方法

安装依赖库报如下异常

bash 复制代码
[2/4] Fetching packages...
error marked@11.1.0: The engine "node" is incompatible with this module. Expected version ">= 18". Got "16.14.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

手动右键删除 node_modules 文件夹,清空了 npm 缓存:

bash 复制代码
npm cache clean --force

发现还是不行。

后来在网上找到了解决方案:忽略错误。

输入命令:

bash 复制代码
yarn config set ignore-engines true

再重新安装依赖,运行项目就可以了

相关推荐
ggaofeng11 小时前
实践NPM打包和使用
前端·npm·node.js
ggaofeng12 小时前
理解npm的原理
前端·npm·node.js
鹿衔`1 天前
CDH 6.3.2 异构集群优化实施文档
hdfs·yarn·cdh·cdh集群优化
中年程序员一枚2 天前
nuxt安装出现certificate 错误
前端框架·npm·node.js
十月不到底2 天前
Windows 上安装 Volta
windows·npm
橙序员小站2 天前
解密前端包管理工具:npm、Yarn与pnpm的全面对比
前端·npm·node.js
搞全栈小苏3 天前
使用 nvm(不破坏系统)Linux 上把 Node.js / npm 升级到你指定版本(Node v23.x、npm 10.x)
linux·npm·node.js
这个图像胖嘟嘟3 天前
前端开发的基本运行环境配置
开发语言·javascript·vue.js·react.js·typescript·npm·node.js
全栈前端老曹4 天前
【包管理】npm最常见的10大问题故障和解决方案
前端·javascript·rust·npm·node.js·json·最佳实践
咔咔一顿操作4 天前
nvm安装Node后node -v正常,npm -v提示“无法加载文件”问题解决
前端·npm·node.js