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

vercel 部署 deploy build 报错 #676

Open
cxiaoji opened this issue Mar 15, 2024 · 4 comments
Open

vercel 部署 deploy build 报错 #676

cxiaoji opened this issue Mar 15, 2024 · 4 comments
Labels
question Further information is requested

Comments

@cxiaoji
Copy link

cxiaoji commented Mar 15, 2024

部署最新 twikoo@1.6.31 vercel 部署 deploy build 报错:
Building:

[16:13:36.256] Running build in Washington, D.C., USA (East) – iad1
[16:13:36.442] Cloning github.com/cxiaoji/twikoo-api (Branch: main, Commit: 39735cc)
[16:13:36.844] Previous build cache not available
[16:13:36.881] Cloning completed: 441.517ms
[16:13:37.159] Running "vercel build"
[16:13:37.679] Vercel CLI 33.5.5
[16:13:42.320] Installing dependencies...
[16:13:45.708] npm ERR! code ERESOLVE
[16:13:45.712] npm ERR! ERESOLVE unable to resolve dependency tree
[16:13:45.712] npm ERR!
[16:13:45.713] npm ERR! While resolving: twikoo@1.6.31
[16:13:45.713] npm ERR! Found: eslint@8.57.0
[16:13:45.713] npm ERR! node_modules/eslint
[16:13:45.713] npm ERR! dev eslint@"^8.2.0" from the root project
[16:13:45.713] npm ERR!
[16:13:45.714] npm ERR! Could not resolve dependency:
[16:13:45.714] npm ERR! peer eslint@"^7.12.1" from eslint-config-standard@16.0.3
[16:13:45.714] npm ERR! node_modules/eslint-config-standard
[16:13:45.714] npm ERR! dev eslint-config-standard@"^16.0.3" from the root project
[16:13:45.714] npm ERR!
[16:13:45.715] npm ERR! Fix the upstream dependency conflict, or retry
[16:13:45.715] npm ERR! this command with --force or --legacy-peer-deps
[16:13:45.715] npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
[16:13:45.716] npm ERR!
[16:13:45.716] npm ERR!
[16:13:45.716] npm ERR! For a full report see:
[16:13:45.716] npm ERR! /vercel/.npm/_logs/2024-03-15T08_13_43_200Z-eresolve-report.txt
[16:13:45.716]
[16:13:45.716] npm ERR! A complete log of this run can be found in: /vercel/.npm/_logs/2024-03-15T08_13_43_200Z-debug-0.log
[16:13:45.730] Error: Command "npm install" exited with 1
[16:13:45.940]

@imaegoo
Copy link
Member

imaegoo commented Apr 3, 2024

不应该 fork 本仓库部署,应该使用教程中的部署按钮部署

https://twikoo.js.org/backend.html#vercel-%E9%83%A8%E7%BD%B2

image

@imaegoo imaegoo added the question Further information is requested label Apr 3, 2024
@lifansama
Copy link

不Fork可能不行了?

To ensure you can easily update yourproject after deploying it, a Git repository must be created. Every push to that Git repository will be deployed automatically.

@imaegoo
Copy link
Member

imaegoo commented Apr 9, 2024

不Fork可能不行了?

To ensure you can easily update yourproject after deploying it, a Git repository must be created. Every push to that Git repository will be deployed automatically.

@lifansama 这句话并没有提到fork,这句话的意思是你需要创建一个仓库

@lirtual
Copy link

lirtual commented Apr 10, 2024

vercel构建设置中的Root Directory选择为src/server/vercel-min后再部署

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

No branches or pull requests

4 participants