Installation
This guide provides detailed instructions for setting up your FHEVM development environment.System requirements
Required software
| Requirement | Minimum version | Recommended |
|---|---|---|
| Node.js | 20+ | Latest LTS |
| npm / pnpm | 10+ / 9+ | Latest |
| Git | 2.40+ | Latest |
| Solidity knowledge | Intermediate | - |
| Hardhat or Foundry | Latest | Hardhat 2.28+ |
Operating systems
- macOS 12+ (Monterey or later)
- Linux (Ubuntu 20.04+, Debian 11+, or equivalent)
- Windows 10/11 with WSL2 (Ubuntu 20.04+ recommended)
Step-by-step installation
1. Install Node.js
2. Install Git
3. Clone the repository
4. Install dependencies
@fhevm/solidity(v0.10.0) - FHE Solidity library@fhevm/mock-utils(v0.4.0) - Testing utilities
@fhevm/hardhat-plugin(v0.4.0) - Hardhat integrationhardhat(v2.28.5) - Development framework@nomicfoundation/hardhat-ethers- Ethers.js integration@typechain/hardhat- TypeScript bindings generatorhardhat-gas-reporter- Gas usage analysis
The
postinstall script will automatically patch the fhEVM plugin. This is normal.5. Compile contracts
6. Run tests
All 328 tests run locally in mock FHE mode. No testnet connection is needed.
Environment configuration
Local development
For local development, no environment configuration is needed. The Hardhat network runs in mock FHE mode by default.Sepolia testnet deployment
Get Sepolia ETH
You need Sepolia ETH to deploy contracts. Get some from:
Project structure
After installation, your project structure will look like this:Docker installation (alternative)
If you prefer a containerized environment:Prerequisites
- Docker Desktop 4.0+ (macOS/Windows)
- Docker Engine 20.10+ (Linux)
- Docker Compose 2.0+
Setup
Run tests
- Build the Docker image
- Install all dependencies
- Compile contracts
- Run all 328 tests
Verify installation
Run this checklist to verify your installation is complete:If all checks pass, your installation is complete and you’re ready to start the bootcamp!
IDE setup
Visual Studio Code (recommended)
Install VS Code
Download from code.visualstudio.com
IntelliJ IDEA / WebStorm
Enable Prettier
Go to Settings → Languages & Frameworks → JavaScript → Prettier
Enable “On save” formatting
Troubleshooting
Node.js version issues
If you have an older Node.js version, usenvm to manage versions:
Compilation errors
If compilation fails:Missing dependencies
If you see “Cannot find module” errors:Permission errors (Linux/macOS)
If you get EACCES errors:WSL2 performance issues
For better performance on WSL2:- Store the project in the Linux filesystem (
~/projects), not Windows (/mnt/c/) - Run
wsl --updateto get the latest WSL2 version - Allocate more memory to WSL2 in
.wslconfig:
.wslconfig
Next steps
Quick start
Get up and running in 10 minutes
Curriculum overview
Explore the 4-week program structure
Additional resources
If you encounter issues not covered here, please report them on the GitHub repository.