Pre-requisites
Here is a list of the requirements needed to begin using Berry React.
Was this helpful?
Here is a list of the requirements needed to begin using Berry React.
Was this helpful?
- Version 20.x.x recommended
/package manager
When copying folders, include hidden files like .env
. This file contains important theme settings. Do not delete the .env
file. Update its values according to your organization’s needs, but do not change the keys.
The theme includes two lock files: yarn.lock
(for Yarn) and package-lock.json
(for npm). Each of these files corresponds to a different package manager. To ensure consistency and avoid potential conflicts:
Choose a Package Manager: Decide whether you will use Yarn or npm for managing dependencies in your project.
If using Yarn: Retain yarn.lock
and delete package-lock.json
.
If using npm: Retain package-lock.json
and delete yarn.lock
.
Do Not Modify Lock Files Manually: Avoid editing the contents of yarn.lock
or package-lock.json
directly. Manually changing these files can lead to dependency issues and inconsistencies. Always use the appropriate package manager commands (yarn
or npm
) to update or regenerate these files.
You can check your current version using following commands:
This documentation primarily uses Yarn. You can replace Yarn commands with npm if needed.
If you face the following error in your terminal, it means Yarn is not installed in your system.
Please install it using this as it does not come with Node automatically.