Open cxiaoji opened 3 months ago
不应该 fork 本仓库部署,应该使用教程中的部署按钮部署
https://twikoo.js.org/backend.html#vercel-%E9%83%A8%E7%BD%B2
不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.
不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,这句话的意思是你需要创建一个仓库
vercel构建设置中的Root Directory选择为src/server/vercel-min
后再部署
部署最新 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]