Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install Bun on Windows without Windows Subsystem for Linux?

Tags:

windows

bun

I have just heard about Bun today, and I am eager to learn it.

So, first thing I want to do is to install it in order to try it.

However, I can't find a way to install it on my local machine.

I am using Windows 11.

This is what I found on the official Readme.

Install Native: (macOS x64 & Silicon, Linux x64, Windows Subsystem for Linux)

curl -fsSL https://bun.sh/install | bash

Docker: (Linux x64)

docker pull jarredsumner/bun:edge

docker run --rm --init --ulimit memlock=-1:-1 jarredsumner/bun:edge

If using Linux, kernel version 5.6 or higher is strongly recommended, but the minimum is 5.1.

I already tried

curl -fsSL https://bun.sh/install | bash

and it says

Windows Subsystem for Linux has no installed distributions. Distributions can be installed by visiting the Microsoft Store: https://aka.ms/wslstore curl: (23) Failure writing output to destination

So, is there a way to install Bun on Windows without Windows Subsystem for Linux?

like image 619
holydragon Avatar asked Sep 12 '25 20:09

holydragon


1 Answers

Windows support is on Bun's roadmap (until then, it is only available on *nix systems)

Windows support

  • The HTTP client needs a Windows implementation for the syscalls
  • Bun needs test coverage for Windows filepath handling
  • All of bun's dependencies need to compile on Windows
  • Building JavaScriptCore needs to work on Windows and the JIT tiers need to work. I don't know what the current status of this is. WebKit's bug tracker suggests it may not have JITs enabled which will likely need some patches to fix it.
like image 101
chenrui Avatar answered Sep 15 '25 12:09

chenrui