Prerequisites
Before you begin developing with Trezor Suite, you need to install several tools and dependencies.Required Tools
Install NVM (Node Version Manager)
Install NVM to manage Node.js versions.
You can configure your shell to automatically switch Node versions when entering the repository.
Install Node.js
The repository requires Node.js 24.11.1 (specified in
.nvmrc).This version must be consistent with the version defined in
suite-native/app/eas.json for mobile builds.Enable Yarn
Enable Yarn package manager through npm. The project uses Yarn 4.12.0.
Install Git LFS
Install Git LFS to handle binary assets.More installation options available in the Git LFS installation guide.
Clone the Repository
Initialize Submodules
The repository uses Git submodules for external dependencies.
Enable automatic submodule updates:This ensures submodules are updated automatically when pulling changes.
Install Dependencies
Install Node.js Version
Use NVM to install and activate the correct Node.js version.This reads the version from
.nvmrc and installs it automatically.Install Node Modules
Install all project dependencies using Yarn.
If Playwright installation fails, you can skip native builds:
Platform-Specific Setup
macOS and Linux
The development environment is primarily supported on macOS and Linux. No additional setup is required beyond the steps above.Windows
Development on Windows requires additional configuration. Choose one of the following approaches:Native Windows (Recommended)
Install Python
Install Python via the Python for Windows installer.
Install Visual Studio
Install Visual Studio Community with C++ build tools.
Install Git for Windows
Install Git for Windows and ensure Git Bash is included.
Exclude the
trezor-suite folder from Windows Defender to improve build performance.Windows Subsystem for Linux (WSL)
Install WSL2
Install Ubuntu WSL2 (must be version 2).
Install Electron Dependencies
Install Electron dependencies for Linux.
Set Up USB Access (Optional)
To connect physical Trezor devices:
- Install USBIPD on Windows
- Install udev rules in WSL
Alternative: Nix Setup
You can use Nix to set up the entire development environment automatically. See the Nix Documentation for details.Using Trezor Emulator
You don’t need a physical Trezor device to develop. Use the Trezor User Env to run emulators for any Trezor model.Verify Installation
Check that everything is set up correctly:Next Steps
Now that your environment is set up:- Learn about the Project Structure
- Start Building the Project
- Run Development Servers
Troubleshooting
Yarn Installation Fails
Ifyarn fails during installation:
- Try installing with
yarn --mode=skip-build - Delete
node_modulesand runyarnagain - Ensure you’re using the correct Node.js version (
nvm use)
Build Times
Expected build times:
- Initial setup: 15-20 minutes
- Full library builds: 10-15 minutes
- Essential builds: 3-5 minutes