Install Node
Info |
---|
The development of GAIA UI started with node version 18.14.0 and npm version 9.0 hence we recommend to use 18 > version > 20, and npm version > 9 |
Node Version Manager (NVM)
nvm is a version manager for node.js, designed to be installed per-user, and invoked per-shell. nvm works on any POSIX-compliant shell (sh, dash, ksh, zsh, bash), in particular on these platforms: unix, macOS, and windows WSL.
To install or update nvm, you should run the install script. To download it use any of the following commands replacing {version} with the correct version.
With curl
Code Block |
---|
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/{version}/install.sh | bash |
With wget
Code Block |
---|
|
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/{version}/install.sh | bash |
To verify that nvm has been installed, do:
Usage
To install a node version in this version manager use
Code Block |
---|
|
nvm install {version} |
Note |
---|
you could use the alias "node" as the version to install the latest node version |
You can list available versions using ls-remote
:
To change between node versions installed with nvm:
Code Block |
---|
|
nvm use {version} |
You can migrate packages from one node version to another:
Code Block |
---|
|
nvm install {version} --reinstall-packages-from={another_version} |
To list your installed versions:
Install PNPM
Using a standalone script
You may install pnpm even if you don't have Node.js installed, using the following scripts.
On Windows
Using PowerShell:
Code Block |
---|
|
iwr https://get.pnpm.io/install.ps1 -useb | iex |
On POSIX systems
Code Block |
---|
|
curl -fsSL https://get.pnpm.io/install.sh | sh - |
If you don't have curl installed, you would like to use wget:
Code Block |
---|
|
wget -qO- https://get.pnpm.io/install.sh | sh - |
On Alpine Linux
Code Block |
---|
|
bash wget -qO- https://get.pnpm.io/install.sh | ENV="$HOME/.bashrc" SHELL="$(which bash)" bash -
sh wget -qO- https://get.pnpm.io/install.sh | ENV="$HOME/.shrc" SHELL="$(which sh)" sh -
dash wget -qO- https://get.pnpm.io/install.sh | ENV="$HOME/.dashrc" SHELL="$(which dash)" dash - |
Using npm
Code Block |
---|
|
npm install -g pnpm |
Using Homebrew
If you have the package manager installed, you can install pnpm using the following command:
Code Block |
---|
|
brew install pnpm |
Install Dependencies
Now install the dependencies from package.json by executing the following pnpm
Note |
---|
You can do the same thing with NPM, but we highly recommend using PNPM, mostly because of the non-flat node_modules directory, which prevents version collision |
Changing the Theme Colors
GAIA UI is using the MUI Theme provider to specify the color of the components, darkness of the surfaces, level of shadow, appropriate opacity of ink elements, etc. You can learn more in Theming from MUI
Currently, GAIA UI implements a light and dark theme, locates on src/themes