diff --git a/docs/development/contributing.md b/docs/development/contributing.md index 2a96cac3..7445933c 100644 --- a/docs/development/contributing.md +++ b/docs/development/contributing.md @@ -10,7 +10,7 @@ ### Prerequisites - **Rust** 1.80+ with `cargo` -- **Node.js** 20+ with `npm` +- **Node.js** 24+ with `npm` for frontend development. Any Node.js version below 24 will fail the frontend install/build because `frontend/package.json` requires `>=24.0.0`; upgrade via the [Node.js downloads](https://nodejs.org/en/download) page or a version manager such as [nvm](https://github.com/nvm-sh/nvm). - **PostgreSQL** 16+ - **Redis** 7+ - **S3-compatible storage** (RustFS/MinIO for local dev) diff --git a/docs/development/local-setup.md b/docs/development/local-setup.md index c67e583b..dee895be 100644 --- a/docs/development/local-setup.md +++ b/docs/development/local-setup.md @@ -54,9 +54,11 @@ You can run the backend locally while keeping infrastructure services (DB, Redis ### Frontend Development 1. Stop the `frontend` container if running: `docker compose stop frontend` -2. Run npm locally: +2. Use Node.js 24 or newer. Any Node.js version below 24 will fail the frontend install/build because `frontend/package.json` requires `>=24.0.0`; upgrade via the [Node.js downloads](https://nodejs.org/en/download) page or [nvm](https://github.com/nvm-sh/nvm). +3. Run npm locally: ```bash cd frontend + npm ci npm run dev ``` *Access at [http://localhost:5173](http://localhost:5173).* diff --git a/frontend/README.md b/frontend/README.md index 66f54d89..96d497aa 100644 --- a/frontend/README.md +++ b/frontend/README.md @@ -2,6 +2,10 @@ Vue 3 + TypeScript + Vite SPA for RustChat. +## Requirements + +- Node.js 24+ with `npm`. Any Node.js version below 24 will fail install/build because this workspace requires `>=24.0.0`; upgrade via the [Node.js downloads](https://nodejs.org/en/download) page or [nvm](https://github.com/nvm-sh/nvm). + ## Commands ```bash