Back to feed
Dev.to
Dev.to
5/8/2026
Set up Midnight blockchain dev

Set up Midnight blockchain dev

Original: Setting up Midnight on Windows via WSL2: The Complete Guide

Short summary

Configure Windows for Midnight blockchain development using WSL2, Docker, and Node.js v22+. The guide covers prerequisites, explains why native Windows approaches fail, provides memory allocation instructions (.wslconfig with 4-8GB RAM), Docker integration with WSL2, Node Version Manager setup, and Compact compiler installation with verification steps. Assumes command-line familiarity.

  • Midnight toolchain requires WSL2 on Windows; native PowerShell, Windows Node.js, Git Bash, and Cygwin all fail
  • Critical setup: allocate 4-8GB RAM via .wslconfig to prevent proof server crashes during zero-knowledge proof generation
  • Complete workflow: WSL2 + Ubuntu → Docker with WSL2 backend → Node.js v22 via nvm → Compact compiler + yarn verification

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Comments

Failed to load comments. Please try again.

Explore more