10

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?

holydragon
  • 6,158
  • 6
  • 39
  • 62
  • 2
    Sadly WSL is required for bun, bun has only just released in beta so Linux, Mac & WSL are only currently supported. – Toby Boulton Jul 07 '22 at 03:23
  • Why do you want to install bun on Windows without WSL is there any particular reason for that? – Mpesiths Jul 07 '22 at 10:51
  • 1
    @Mpesiths I just want to use it like how I am using NodeJs. I downloaded it and installed it on my Windows local machine and it works without installing any additional software. It is, in my opinion, cleaner as I am not familiar with WSL. – holydragon Jul 07 '22 at 10:53
  • 1
    Well, Node.js has been years in the wild now. Bun was literally released yesterday (July 6th, 2022). Bun's 'roundabout' installation and limitations only prove how early it is in its life. As a fellow Windows poweruser, I encourage you to try WSL. Is a wonderful tool, to put it short. – Jetto Martínez Jul 07 '22 at 14:11

1 Answers1

7

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.
Eugen Pechanec
  • 37,669
  • 7
  • 103
  • 124
chenrui
  • 8,910
  • 3
  • 33
  • 43