Pre-requisites

Prerequisites for Run and Build Mantis.

Pre-requisites

Mantis is based on node and Vite. Please check the following prerequisites before jumping into it.

Node is the primary prerequisite for Mantis. Open your command terminal and check using the node -v command

c:\> node -v
v22.x.x

Package Manager - npm or yarn

c:\> npm -v
v11.6.1
c:\> yarn -v
v4.10.3

Package Manager - yarn

This project uses Yarn (via Corepack) for dependency management. The required Yarn version is specified in the package.json file, and Corepack ensures the correct version is used automatically. There's no need to install Yarn globally.

If Corepack is not available: Corepack is included with Node.js version 16.10+ by default. If it's not installed or enabled:

  1. Ensure you’re using Node.js 16.10 or higher.

  2. Enable Corepack by running : corepack enable

  3. If Corepack is unavailable, update Node.js to a supported version.

After Corepack is enabled, simply run yarn commands, and the correct version will be handled for you automatically. For more information about Yarn and Corepack, refer to the documentation:

Troubleshooting

If you face the following error in your terminal, it means Yarn is not installed in your system.

c:\> yarn -v
'yarn' is not recognized as an internal or external command,
operable program or batch file.

Please install it using this link, as it does not come with Node automatically.

Last updated