Set up freeCodeCamp on Windows Subsystem for Linux (WSL)
This guide covers some common steps with the setup of WSL2.
Once some of the common issues with WSL2 are addressed, you should be able to follow this local setup guide to work with freeCodeCamp on Windows running a WSL distro like Ubuntu.
We recommend using an Ubuntu LTS release supported by Playwright with WSL2.
Playwright, the end-to-end testing library used by freeCodeCamp, supports specific Ubuntu and Debian releases. Check its system requirements before choosing a release.
You may use other non-Debian-based distributions, they all come with their own ‘gotchas’ that are beyond the scope of this guide.
We recommend you install the LTS release for Node.js with node version manager - nvm. Once installed use this command to install and use the latest Node.js LTS version:
Terminal window
nvminstall--lts
For instructions on installing and using a different version of Node.js, please refer to the nvm docs.
Node.js comes bundled with npm, which you can use to install pnpm:
The default settings for your WSL installation can vary. Allocate memory and swap space according to your workload and the resources available on your machine.