Node.js is required for React, Next.js, and Node-based backends. Install the LTS version for stability.
- Download the LTS version from nodejs.org.
- Run the installer. Ensure that npm is included (it is by default).
- Verify:
node --versionandnpm --versionin a terminal. - In the project folder, run
npm installto install dependencies. Usenpm run startornpm run devas per the README.
For React or frontend-only projects, ensure you have the correct Node version (e.g. 18+) as specified in the project documentation.