[BUG] Severe UX Issues: 3+ Hours to Set Up Simple Node.js Project - Environment & Dependency Hell

Resolved 💬 2 comments Opened Feb 14, 2026 by nagendram12345 Closed Feb 15, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

I built a website, and I am trying to run it locally. Claude is stuck in a Loop, repeating the same information for 3-4 hours with no useful content. Keep forgetting my command.

It is REALLY BAD. I am not to run a simple website with a small database in my local.

I spent over 3 hours trying to set up a Next.js/Prisma project with Claude Code assistance and encountered multiple critical issues:

Problems Encountered:

Prisma Version Mismatch Hell

Project expects Prisma 5.22.0
System had Prisma 7.x installed
Error: "datasource property url is no longer supported"
Required: rm -rf node_modules and full reinstall
Claude should detect version mismatches and warn upfront
Environment Variable Not Loading

.env file exists in web/ directory with DATABASE_URL="file:./prisma/dev.db"
Prisma consistently throws: "Environment variable not found: DATABASE_URL"
This persisted through multiple npm installs, Prisma regenerations
Claude kept suggesting the same failed solutions repeatedly
Monorepo Workspace Confusion

Project uses npm workspaces (root + web/mobile/shared)
Claude initially didn't recognize this structure
Gave incorrect paths and commands for single-repo setup
Database Seeding Issues

Seeded 251 cases successfully initially
After reinstalling node_modules, database appeared empty
Unclear if database was wiped or connection lost

What Should Happen?

I built a website, and I am trying to run it locally. Claude is stuck in a Loop, repeating the same information for 3-4 hours with no useful content. Keep forgetting my command.

It is REALLY BAD. I am not to run a simple website with a small database in my local

Error Messages/Logs

Steps to Reproduce

Build a website and have a headche to run it locally

Claude should detect project structure (monorepo vs single)
Version conflict detection before suggesting commands
Environment troubleshooting should be systematic, not repetitive
Better debugging steps when .env files aren't loading

Impact:
Simple project setup took 3+ hours with constant errors. Extremely frustrating UX.

Environment:

macOS
Node.js v25.6.0
npm workspaces
Next.js 14.2.35
Prisma 5.22.0 (expected) vs 7.4.0 (installed)

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

Impact: Simple project setup took 3+ hours with constant errors. Extremely frustrating UX. Environment: macOS Node.js v25.6.0 npm workspaces Next.js 14.2.35 Prisma 5.22.0 (expected) vs 7.4.0 (installed)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗