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

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

相关推荐
qq_316837752 天前
npm run tauri build Downloading下载超时
前端·npm·node.js
天渺工作室4 天前
把一篇老文章内容 Vibecoding 成了 npm 包
前端·vue.js·npm
天渺工作室4 天前
Vue自定义指令实现点击事件权限拦截控制的npm插件
前端·vue.js·npm
不会写DN6 天前
通过白名单解决 pnpm i 报错 Ignored build scripts
javascript·面试·npm
梦无矶6 天前
nrm自动设置npm镜像源
前端·npm·node.js
梦无矶6 天前
快速设置npm默认源为国内全局镜像源
前端·npm·node.js
菜泡泡@7 天前
npm 安装pnpm之后运行pnpm -v查询报错
前端·npm·node.js
在线打码7 天前
Claude Code 内网离线极简部署指南
人工智能·ai·npm·node·claudecode