在 @repo/payments 工作区中由于 zod 版本冲突导致 next-forge init 失败,出现 npm ERESOLVE 错误
作者: mauriantolin创建于 2026年4月3日更新于 2026年4月3日
标签bug
Describe the bug
Running npx next-forge@latest init creates the project successfully, but the dependency installation step fails during npm install with an ERESOLVE unable to resolve dependency tree error. The conflict appears to come from the @repo/payments workspace imported in apps/api, where [email protected] is installed, but [email protected] requires peerOptional zod@"^3.23.8". Because of this, the initialization process is canceled before dependencies are fully installed.
内容来源: vercel/next-forge