Skip to content

Install Bun on Windows 10 / 11 (WSL)



00:00 Bun Introduction
00:30 Installing WSL & Ubuntu
01:25 Installing Bun & Updating to WSL 2
02:30 Upgrading Bun & Testing

In this tutorial we will install Bun inside a Windows 10 system.

Remember to update Windows before all of this, as WSL works best in the most recent W10 versions.

There are several ways to install WSL, in this video I’m showing you one from powershell:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

This can be achieved from the Windows Settings as well.
One more precautionary measure would be enabling the Windows optional feature “Virtual Machine Platform” (this can be found on Google,
I didn’t need to do this and haven’t tested it on my system, consider this if you encounter errors with WSL).

Another problem you may encounter is WSL not recognizing commands such as “wsl –update”: in this case, again, the major hints I found online were to update Windows (it should be on a specific update or higher).

At the time of…

Send this to a friend