twikoojs / twikoo

💬 一个简洁、安全、免费的静态网站评论系统 | A simple, safe, free comment system.
http://twikoo.js.org
MIT License
1.51k stars 293 forks source link

eslint 和 eslint-config-standard 支持版本不一致 #714

Open lhuafmaof opened 3 months ago

lhuafmaof commented 3 months ago

eslint 和 eslint-config-standard 之间存在依赖冲突。具体来说,eslint-config-standard 16.0.3 版本要求 eslint 版本为 ^7.12.1,而你当前安装的 eslint 版本为 8.57.0。在vercel部署之后就会报错。

npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: twikoo@1.6.36 npm ERR! Found: eslint@8.57.0 npm ERR! node_modules/eslint npm ERR! dev eslint@"^8.2.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer eslint@"^7.12.1" from eslint-config-standard@16.0.3 npm ERR! node_modules/eslint-config-standard npm ERR! dev eslint-config-standard@"^16.0.3" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! npm ERR! For a full report see: npm ERR! /vercel/.npm/_logs/2024-06-06T12_23_18_543Z-eresolve-report.txt npm ERR! A complete log of this run can be found in: /vercel/.npm/_logs/2024-06-06T12_23_18_543Z-debug-0.log Error: Command "npm install" exited with 1

imaegoo commented 3 months ago

image

请使用教程中的部署链接部署,请勿直接部署twikoo仓库