npm install 在 react-dom/streamdown 上出现 ERESOLVE 对等依赖冲突

作者: Victory-7291创建于 2026年8月15日更新于 2026年8月22日
标签bug

name: Bug report about: Create a report to help us improve title: 'npm install fails with ERESOLVE peer dependency conflict on react-dom/streamdown' labels: bug assignees: ''

Describe the bug Running npx next-forge@latest init fails during the Installing dependencies step when using npm due to an ERESOLVE peer dependency conflict in packages/ai.

In packages/ai/package.json, streamdown requires peer react-dom@"^18.0.0 || ^19.0.0". Because react-dom is missing from packages/ai's dependencies (only react: "19.2.4" is declared), npm resolves the latest matching react-dom (e.g. 19.2.8), which requires peer react@"^19.2.8". This conflicts with the pinned react@"19.2.4" across the workspace.

内容来源: vercel/next-forge