ResearchPlays
ResearchPlays
CDCloudflare Developers
Created by ResearchPlays on 4/18/2025 in #workers-help
Dependency Conflict in Next.js Cloudflare Template during npm install
Hey everyone, I'm using the Next.js Cloudflare template and trying to deploy using these settings: Build command: npm install --force Deploy command: npx wrangler deploy Root directory: / But I’m encountering this error during build: 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. I already tried using --force, but the issue persists. Any ideas on how to cleanly resolve this or handle the dependency conflict the proper way? Would appreciate any help 🙏
6 replies