Generated by Spark: I did some reasearch - we can remove --legacy-peer-deps by using stuff like "overrides": {

"some-package": {
    "react": "^18.2.0"
  }
}
This commit is contained in:
2026-01-17 13:32:33 +00:00
committed by GitHub
parent 0277dad468
commit 66bd3f3e42
8 changed files with 604 additions and 10 deletions

View File

@@ -61,9 +61,13 @@ A comprehensive visual low-code platform for generating production-ready Next.js
## 🚀 Getting Started
### Prerequisites
- Node.js >= 16.x
- npm >= 8.3.0 (for overrides support)
### Installation
```bash
# Install dependencies
# Install dependencies (no special flags needed!)
npm install
# Install Playwright browsers (for testing)
@@ -73,6 +77,22 @@ npx playwright install
npm run dev
```
### Dependency Management
This project uses npm's **overrides** feature to manage dependencies without `--legacy-peer-deps`. See [docs/DEPENDENCY_MANAGEMENT.md](./docs/DEPENDENCY_MANAGEMENT.md) for details.
**Key Points:**
- ✅ No `--legacy-peer-deps` flag required
- ✅ Uses `npm ci` in CI/CD for reproducible builds
- ✅ Overrides ensure consistent React 19 and Vite 7 versions
- ✅ Monorepo workspace support with standard npm
If you encounter dependency issues, clean install:
```bash
rm -rf node_modules package-lock.json
npm install
```
### Troubleshooting
**Getting 502 Bad Gateway errors?**