Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lhuafmaof opened this issue Jun 7, 2024 · 1 comment
Open

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

lhuafmaof opened this issue Jun 7, 2024 · 1 comment

Comments

@lhuafmaof
Copy link

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: [email protected]
npm ERR! Found: [email protected]
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 [email protected]
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
Copy link
Member

imaegoo commented Jun 7, 2024

image

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants