Ā© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•10mo ago•
5 replies
ResearchPlays

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 šŸ™
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Conflict between Cloudflare Workers checks & Cloudflare docs
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
2y ago
Next.js project build missing public assets during deployment
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
8mo ago
Deployment Fails Due to "No Space Left on Device" (ENOSPC) Error During NPM Install on Cloudflare
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
10mo ago