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.
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.
Share Improve this question edited Jul 9, 2022 at 22:37 Lee Taylor 7,98416 gold badges37 silver badges53 bronze badges asked Jul 9, 2022 at 5:34 user16466655user16466655 511 gold badge1 silver badge2 bronze badges 3- it doesn't work on WSL, its still WIP. – bogdanoff Commented Jul 9, 2022 at 5:41
- I have seen a lot of tutorials using it in WSL like in this video youtube./watch?v=-deAm_7akK4&t=399s – user16466655 Commented Jul 9, 2022 at 6:18
- I saw other video, where he couldn't make it work on WSL. Here follow this issue. – bogdanoff Commented Jul 9, 2022 at 7:39
1 Answer
Reset to default 3You 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:
- Go to "Microsoft Store" in the start menu for Windows 10/11.
- Download Ubuntu 22.04 LTS
Then proceed to reinstall Bun:
sudo apt install unzip
curl https://bun.sh/install | bash
There's a post about it here