4

I am trying to install bun to wsl and have already added

BUN_INSTALL="/home/jack/.bun" 

and

PATH="$BUN_INSTALL/bin:$PATH" 

to

$HOME/.bashrc 

and when I do bun -v the error shows up.

Lee Taylor
  • 7,761
  • 16
  • 33
  • 49
user16466655
  • 41
  • 1
  • 2

1 Answers1

3

You might need to upgrade your WSL Ubuntu version. A version that works with Bun is 22.04.

You can check your current version inside a Ubuntu terminal: lsb_release -a

To update:

  1. Go to "Microsoft Store" in the start menu for Windows 10/11.
  2. Download Ubuntu 22.04 LTS

Then proceed to reinstall Bun:

  1. sudo apt install unzip
  2. curl https://bun.sh/install | bash

There's a post about it here

will
  • 31
  • 5