Docs
Apps

Requirements Check

This script checks the system requirements for running the application, including Node.js version and pnpm version.

This script ensures that your system meets the necessary requirements to run the application. It automatically verifies the following during development:

  1. Node.js Version: Ensures that the Node.js version is at least v20. If the version is incompatible, the script logs an error and stops execution.
  2. pnpm Version: Ensures that the pnpm version is at least 9.12.0. If the version is incompatible, the script logs an error and stops execution. For versions between 9.0.0 and 9.12.0, it logs a warning but allows execution.

How it works

The script runs automatically in development mode and performs the following checks:

  • Node.js Version: Compares the installed Node.js version with the required version (>=v20).
  • pnpm Version: Retrieves the installed pnpm version and compares it with the required version (>=9.12.0).

If any of the checks fail, the script logs an appropriate error or warning message and stops execution to prevent potential issues.

Manual check

The check runs automatically after pnpm i or pnpm run dev. If you want to run it manually:

pnpm run --filter requirements-check requirements